WO2019218847A1 - 一种策略控制方法、装置及系统 - Google Patents

一种策略控制方法、装置及系统 Download PDF

Info

Publication number
WO2019218847A1
WO2019218847A1 PCT/CN2019/083635 CN2019083635W WO2019218847A1 WO 2019218847 A1 WO2019218847 A1 WO 2019218847A1 CN 2019083635 W CN2019083635 W CN 2019083635W WO 2019218847 A1 WO2019218847 A1 WO 2019218847A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
policy
request message
mobility management
policy control
Prior art date
Application number
PCT/CN2019/083635
Other languages
English (en)
French (fr)
Inventor
宗在峰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2019218847A1 publication Critical patent/WO2019218847A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0033Control or signalling for completing the hand-off for data sessions of end-to-end connection with transfer of context information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/12Reselecting a serving backbone network switching or routing node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off

Definitions

  • the present application relates to the field of mobile communications technologies, and in particular, to a policy control method, apparatus, and system.
  • an access and mobility management function (AMF) network element can interact with a policy control function (PCF) network element so that Obtain terminal policies and access and mobility management strategies.
  • AMF access and mobility management function
  • PCF policy control function
  • the AMF network element establishes a policy association with the PCF network element, and the PCF network element provides a policy to the AMF network element through the policy association.
  • the AMF network element before reselection is called Old AMF
  • the reselected AMF network element is called New AMF.
  • PLMN public land mobile network
  • New AMF selects Old vPCF New AMF will request the Old vPCF.
  • a policy association is established, wherein the Old vPCF is a PCF network element located at the visited place associated with the Old AMF establishment policy.
  • Old vPCF establishes the policy association between Old vPCF and New AMF after receiving the request for establishing policy association from New AMF, and Old vPCF needs to delete the policy association with Old AMF subsequently, which will result in waste of resources on Old vPCF. .
  • the present application provides a policy control method, apparatus, and system for saving a resource cost of a policy control network element in a scenario of reselection of a mobility management network element.
  • the present application provides a policy control method.
  • the method includes: the second visited policy control network element receives a first update request message from the first mobility management network element, where the first update request message includes information of the first mobility management network element; and the second visited location policy control
  • the network element updates the information of the second mobility management network element in the information associated with the second policy to the information of the first mobility management network element according to the first update request message, where the second policy association is determined by the second visited location policy.
  • the control network element is created by the terminal; wherein the first mobility management network element, the second visited location policy control network element, and the second mobility management network element are located in the same visited public land mobile network (visited public land mobile network, vPLMN).
  • the first mobility management network element is a reselected mobility management network element
  • the second mobility management network element is a mobility management before reselection.
  • the network element, the second visited policy control network element is a policy control network element associated with the second mobility management network element establishing a policy
  • the sex management network element is located in the same vPLMN.
  • the second visited location policy control network element may receive the first update request message sent by the first mobility management network element, and further The second visited policy control network element may update the information of the second mobility management network element in the information related to the second policy stored in the second visited policy control network element to the first information according to the first update request message.
  • the second visited policy control network element does not need to delete the information of the second mobility management network element in the information associated with the second policy, and does not need to re-establish the policy association with the first mobility management network element, but directly
  • the information of the second mobility management network element in the information associated with the second policy is updated to the information of the first mobility management network element, thereby saving resource overhead of policy control.
  • the second visited policy control network element may further receive the first delete request from the first mobility management network element.
  • the first deletion request message is used to request to delete the second policy association; the second visited policy control network element starts a timer; correspondingly, the second visited policy control network element receives the first mobility management network element
  • the first update request message is specifically: before the timer expires, the second visited policy control network element receives the first update request message from the first mobility management network element.
  • the second visited policy control network element first receives the first deletion request message sent by the second mobility management network element for requesting deletion of the second policy association, before receiving the first update request message.
  • the second visited policy controls the network element to start a timer. If the second visited policy control network element receives the first update request message from the first mobility management network element before the timer expires, the second visited policy control network element according to the first update request message The information of the second mobility management network element in the information associated with the second policy is updated to the information of the first mobility management network element. Further, if the second visited policy control network element receives the first update request message after the timer expires, or the second visited policy control network element does not receive the first update request message until the timer expires, The second visited policy control network element deletes the second policy association according to the first deletion request message when the timer expires. Specifically, the second visited policy control network element deletes the information associated with the second policy.
  • the first deletion request message includes a deletion indication
  • the deletion indication is used to indicate that the second visited policy control network element deletes the second policy when the message for requesting to update the second policy association is not received.
  • the second visit policy controls the network element to start the timer, which may include: the second visited policy control network element starts the timer according to the deletion indication.
  • the deletion indication here is a conditional deletion indication, that is, a second visited policy control network element: if a message for requesting to update the second policy association is not received, such as the first update request message described above, deleting The second strategy is associated.
  • the delete indication can also use any of the following implementations:
  • the deletion indication may be used to indicate that the second policy association is not deleted if the second visited policy control network element receives the message sent by the first mobility management network element for requesting to update the second policy association.
  • the deletion indication may further be used to indicate that the second visited policy control network element does not delete the second policy association if the message sent by the first mobility management network element for requesting to update the second policy association is received, and the second The visited policy control network element deletes the second policy association if it does not receive a message for requesting an update policy association.
  • the deleting the second policy association specifically refers to deleting the information associated with the second policy.
  • the first deletion request message includes an indication that the mobility management network element changes, and the indication of the mobility management network element change is used to indicate that the first deletion request message is triggered by the change of the mobility management network element.
  • the second visited policy control network element starts the timer, which may include: the second visited local policy control network element starts the timer according to the indication of the mobility management network element change. Based on the solution, when the second visited policy control network element receives the first deletion request message, according to the indication of the mobility management network element change in the first deletion request message, it may be determined that the mobility management network element is reselected. Therefore the timer will be started.
  • the second visited policy control network element may further receive a second delete request message from the second mobility management network element, where the second delete request message is used. And requesting to delete the second policy association; then the second visited policy control network element ignores the second deletion request message. In this way, the second visited policy control network element is saved to save resource overhead.
  • the second visited policy control network element may further send a first notification message to the second mobility management network element, where the first notification message is used to notify the second mobility management network element:
  • the visited policy control network element receives the first update request message.
  • the first update request message may further include an identifier of the second resource, where the second resource is a resource corresponding to the second policy association, and the first update request message is specifically used to request the second resource.
  • the information of the second mobility management network element in the second policy-related information is updated to the information of the first mobility management network element.
  • the second visited policy control network element may further send a second update request message to the second home policy control network element, where the second update request message is used to request the second home policy control network.
  • the first update of the first policy association is performed by the second home policy control network element for the terminal; wherein the second home location policy control network element is located at the home public land mobile network (home public land mobile network, hPLMN).
  • the default first mobility management network element when the first mobility management network element selects the second visited policy control network element, the default first mobility management network element also selects the second home location policy control network element, and the second attribution location
  • the policy control network element is a policy control network element that is associated with the second visited policy control network element, and the second home location policy control network element can receive the second update request message sent by the second visited policy control network element.
  • the second home policy control network element may update the first policy association stored in the second home policy control network element according to the second update request message, where the first policy association is determined by the second home location policy
  • the control network element is created for the terminal.
  • the present application provides a policy control method.
  • the method includes: the first mobility management network element receives the context of the terminal from the second mobility management network element, the context of the terminal includes information associated with the second policy, and the information associated with the second policy includes the second visited policy control network.
  • the second policy association is created by the second visited policy control network element for the terminal; if the first mobility management network element selects the second visited local policy control network element, the second visited local policy control network
  • the element sends an update request message, where the update request message includes information of the first mobility management network element, and the update request message is used to request the second visited policy to control the second mobility management network element in the information associated with the second policy.
  • the information is updated to the information of the first mobility management network element; wherein the first mobility management network element, the second mobility management network element, and the second visited location policy control network element are located in the same visited public land mobile network vPLMN .
  • the information associated with the second policy includes the identifier of the second visited policy control network element, where the information associated with the second policy includes information of the second resource, and the information of the second resource includes The second visited policy controls the identifier of the network element and the identifier of the second resource, where the second resource is the resource corresponding to the second policy association, and the update request message is specifically used to request the information associated with the second policy in the second resource.
  • the information of the second mobility management network element is updated to the information of the first mobility management network element; or
  • the information of the second policy that is included in the context of the terminal further includes the identifier of the second resource
  • the update request message further includes the identifier of the second resource, where the update request message is specifically used to request information related to the second policy in the second resource.
  • the information of the second mobility management network element is updated to the information of the first mobility management network element.
  • the present application provides a policy control method.
  • the method includes: a second mobility management network element receives a request message from a first mobility management network element, the request message is used to request to acquire a context of the terminal; and the second mobility management network element sends the first mobility management network element to the first mobility management network element
  • the context of the terminal, the context of the terminal includes the information associated with the second policy, the information associated with the second policy includes the identifier of the second visited policy control network element, and the second policy association is controlled by the second visited policy to control the network element for the terminal.
  • the first mobility management network element, the second visited policy control network element, and the second mobility management network element are located in the same visited public land mobile network vPLMN.
  • the second mobility management network element may also start the first timer; if the second mobility management network element receives the second visited policy control network element before the first timer expires a first notification message, the first notification message is used to notify the second mobility management network element, and the second visited policy control network element receives the message for requesting to update the second policy association, and the second mobility management network element Stop the first timer.
  • the second mobility management network element may also start the first timer; if the second mobility management network element does not receive the second visited policy control network before the first timer expires a first notification message of the element, the first notification message is used to notify the second mobility management network element, and the second visited policy control network element receives the message for requesting to update the second policy association, and the second mobility management network
  • the first sending request message is sent to the second visited policy control network element, where the first delete request message is used to request the second visited policy control network element to delete the second policy association, and is used to indicate the second visited policy control network.
  • the first home policy control network element deletes the first policy association, where the first policy association is controlled by the second home location policy control network element; wherein the second home location policy control network element is located at the home land public land Mobile network hPLMN.
  • the first deletion request message includes a first deletion indication, where the first deletion indication is used to indicate that the second visited policy control network element requests the second home policy control network element to delete the first policy association.
  • the second mobility management network element may further send a second deletion request message to the second visited policy control network element, where the second deletion request message is used to indicate the second visited policy control network element.
  • the second policy association is deleted when a message for requesting to update the second policy association is not received.
  • the present application provides a policy control method.
  • the method includes: the second home policy control network element receives an update request message from the second visited policy control network element; the second home policy control network element updates the first policy association according to the update request message, and the first policy association
  • the second home location policy control network element is located in the vPLMN, and the second home location policy control network element is located in the hPLMN.
  • the present application provides a policy control method.
  • the method includes: the first visited policy control network element receives an establishment request message from the first mobility management network element, where the establishment request message includes update information and information of the first mobility management network element, and the update information includes the second attribution
  • the policy controls the identifier of the network element, where the update information is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element; the first visited policy control network element controls the network element according to the first move
  • the information of the management network element is used to create a third policy association for the terminal.
  • the first visited policy control network element sends an update request message to the second home location policy control network element according to the update information, where the update request message includes the first visited policy.
  • the update request message is used to request the second home policy control network element to update the information of the second visited policy control network element in the information associated with the first policy to the first visited local policy control network element.
  • Information wherein the first mobility management network element and the first visited location policy control network element are located in the first visited public land mobile network v The PLMN, the second mobility management network element and the second visited policy control network element are located in the second vPLMN, and the second home policy control network element is located in the home landed public land mobile network hPLMN.
  • the update information includes the identifier of the second home policy control network element, where the update information includes the information of the first resource, and the information of the first resource includes the second home policy control network element.
  • the identifier of the first resource where the first resource is a resource corresponding to the first policy association, and the update request message is used to indicate that the first visited policy control network element requests the second home policy control network element to update the
  • the first policy association is specifically: the information of the first resource in the update information is used to indicate that the first visited policy control network element requests the second home location policy control network element to update the first policy association; or
  • the update information further includes an identifier of the first resource, where the update information is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element, specifically: the first resource in the update information. And the identifier of the second home policy control network element is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element; or
  • the update information further includes indication information, where the update information is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element, specifically: the indication information in the update information and the second The identifier of the home policy control network element is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element.
  • the present application provides a policy control method.
  • the method includes: the first mobility management network element receives the context of the terminal from the second mobility management network element, the context of the terminal includes information associated with the first policy, and the information associated with the first policy includes the second attribution policy control network.
  • the identifier of the element, the first policy association is created by the second home policy control network element for the terminal; if the first mobility management network element selects the first visited location policy control network element, the first visited local policy control network
  • the element sends a setup request message, where the setup request message includes the update information and the information of the first mobility management network element, and the setup request message is used to request the first visited policy control network element to create the terminal according to the information of the first mobility management network element.
  • the update information includes an identifier of the second home policy control network element, where the update information is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element;
  • the first mobility management network element and the first visited location policy control network element are located in the first visited place public land mobile network vPLM. N.
  • the second mobility management network element is located in the second vPLMN or the homelanding public land mobile network hPLMN, and the second home policy control network element is located in the hPLMN.
  • the information related to the first policy includes the identifier of the second home policy control network element, where the information related to the policy includes the information of the first resource, and the information of the first resource includes the second attribute.
  • the local policy controls the identifier of the network element and the identifier of the first resource, where the first resource is the resource corresponding to the first policy association, and the update information includes the identifier of the second home location policy control network element, where the update information includes the first resource.
  • the update information is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element, where the information of the first resource in the update information is used to indicate the location
  • the first visited policy control network element sends an update request message to the second home policy control network element; or
  • the information associated with the first policy further includes an identifier of the first resource, where the update information further includes an identifier of the first resource, where the update information is used to indicate that the first visited policy control network element is to the second home policy control network.
  • the element sends an update request message, specifically: the identifier of the second home location policy control network element and the identifier of the first resource in the update information are used to indicate that the first visited policy control network element controls the second home location policy Controlling the network element to send an update request message; or,
  • the update information further includes indication information, where the update information is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element, specifically: second home location policy control in the update information.
  • the identifier and indication information of the network element is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element.
  • the present application provides a policy control method.
  • the method includes: a second mobility management network element receives a request message from a first mobility management network element, the request message is used to request to acquire a context of the terminal; and the second mobility management network element sends the first mobility management network element to the first mobility management network element
  • the context of the terminal, the context of the terminal includes the information associated with the first policy, the information associated with the first policy includes the identifier of the second home policy control network element, and the first policy association is controlled by the second home policy control network element for the terminal.
  • the first mobility management network element is located at the first visited local public mobile network vPLMN
  • the second mobility management network element is located at the second vPLMN or the public land mobile network hPLMN located at the home location, the second affiliation
  • the local policy control network element is located in hPLMN.
  • the second mobility management network element may start the first timer; if the first timer expires before receiving the first timer
  • the second notification message is used to control the first notification message of the network element, where the first notification message is used to notify the second mobility management network element, and the second home location policy control network element receives the message for requesting to update the first policy association
  • the second mobility management network element sends a first deletion request message to the second visited policy control network element, where the first deletion request message is used to request the second visited policy control network element to delete the second policy association, and is used to indicate the
  • the second visited policy control network element requests the second home location policy control network element to delete the first policy association, and the second policy association is controlled by the second visited location policy control network element for the terminal.
  • the first deletion request message includes a first deletion indication, where the first deletion indication is used to indicate that the second visited policy control network element requests the second home policy control network element to delete the first policy association.
  • the second mobility management network element may start the first timer; if the second mobility management network element is in the first timer Receiving a first notification message from the second visited policy control network element before the timeout, the first notification message is used to notify the second mobility management network element, and the second home policy control network element receives the first request for updating the first And the second mobility management network element sends a second deletion request message to the second visited policy control network element, where the second deletion request message is used to request the second visited policy control network element to delete the second policy association.
  • the second policy association is created by the second visited policy control network element for the terminal; wherein the second visited policy control network element is located in the second vPLMN.
  • the second deletion request message includes a second deletion indication, where the second deletion indication is used to indicate that the second visited policy control network element does not request to delete the first policy from the second attribution policy control network element. Association.
  • the second mobility management network element may send a third deletion request message to the second visited policy control network element, where the third deletion is performed.
  • the request message is used to indicate that the second visited policy control network element deletes the second policy association when the message for requesting to update the first policy association is not received, and the second policy association is that the second visited policy controls the network element as the terminal. Created.
  • the second mobility management network element may receive the identifier of the first resource from the second visited policy control network element, where The resource is a resource associated with the first policy, and the information associated with the first policy included in the context of the terminal further includes the identifier of the first resource; or
  • the second mobility management network element receives the information of the first resource from the second visited policy control network element, and the information associated with the first policy includes the identifier of the second home location policy control network element, specifically: the first policy association
  • the information includes information of the first resource, and the information of the first resource includes an identifier of the second home policy control network element and an identifier of the first resource.
  • the second mobility management network element may also start the second timer; if the second timer is not received, the second timer is not received.
  • the second policy message is used to notify the second mobility management network element, and the second home policy control network element receives the message for requesting to update the first policy association,
  • the second mobility management network element sends a fourth deletion request message to the second home policy control network element, where the fourth deletion request message is used to request the second home policy control network element to delete the first policy association.
  • the present application provides a policy control method.
  • the method includes: the second home policy control network element receives an update request message from the first visited policy control network element, where the update request message includes information of the first visited local policy control network element; and the second home location policy control network element Update the information of the second visited policy control network element in the information associated with the first policy to the information of the first visited local policy control network element, where the first policy association is created by the second home location policy control network element.
  • the first visited policy control network element is located in the first visited place public land mobile network vPLMN
  • the second visited place policy control network element is located in the second vPLMN
  • the second home location policy control network element is located in the home visited place Public land mobile network hPLMN.
  • the second homepage policy control network element may further send a first notification message to the second visited policy control network element, where the first notification message is used to notify the second visited policy control network element.
  • the second home policy control network element receives the update request message.
  • the second homepage policy control network element may further send a second notification message to the second mobility management network element, where the second notification message is used to notify the second mobility management network element, and the second The home policy control network element receives the update request message, and the second mobility management network element is located in the hPLMN.
  • the application provides a device, which may be a mobility management network element, a policy control network element, or a chip.
  • the apparatus has the function of implementing the embodiments of any of the first to eighth aspects described above. This function can be implemented in hardware or in hardware by executing the corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • an apparatus comprising: a processor and a memory; the memory is configured to store a computer execution instruction, and when the apparatus is running, the processor executes the computer execution instruction stored in the memory to cause the apparatus to execute
  • the policy control method according to any one of the above first aspect or the first aspect, or the apparatus for performing the policy control method according to any one of the above second aspect or the second aspect, or for causing the device to perform
  • the policy control method according to any one of the above third aspect or the third aspect, or the apparatus, wherein the apparatus performs the policy control method according to any one of the above fourth or fourth aspects, or to cause the apparatus to execute
  • the policy control method according to any one of the seventh aspect or the seventh aspect, or the device, wherein the device is as described in any one of the eighth or eighth aspect described above Little control method.
  • the present application further provides a computer readable storage medium having instructions stored therein that, when executed on a computer, cause the computer to perform the methods described in the above aspects.
  • the present application also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the various aspects above.
  • the present application further provides a system, where the system includes any of the second visited policy control network elements in the foregoing first aspect, and any one of the foregoing second mobility management network elements . Further, the system can also include any of the second mobility management network elements of the third aspect above. Further, the system may further include any of the second home policy control network elements of the foregoing fourth aspect.
  • the present application further provides a system, where the system includes any one of the foregoing first visited policy control network elements, and any one of the foregoing sixth mobility management network elements . Further, the system may further include any of the second mobility management network elements of the seventh aspect. Further, the system may further include any of the second home policy control network elements of the foregoing eighth aspect.
  • FIG. 1(a) is a schematic diagram of a possible network architecture provided by the present application.
  • FIG. 1(b) is a schematic diagram of still another possible network architecture provided by the present application.
  • FIG. 1(c) is a schematic diagram of still another possible network architecture provided by the present application.
  • FIG. 2 is a schematic diagram of a policy control method provided by the present application.
  • FIG. 3 is a schematic diagram of still another method for controlling a policy provided by the present application.
  • FIG. 4 is a schematic diagram of still another method for controlling a policy provided by the present application.
  • FIG. 5 is a schematic diagram of still another method for controlling a policy provided by the present application.
  • FIG. 6 is a schematic diagram of still another method for controlling a policy provided by the present application.
  • FIG. 7 is a schematic diagram of still another method for controlling a policy provided by the present application.
  • FIG. 8 is a schematic diagram of still another method for policy control provided by the present application.
  • FIG. 9 is a schematic diagram of still another method for controlling a policy provided by the present application.
  • FIG. 10 is a schematic diagram of still another policy control method provided by the present application.
  • FIG. 11 is a schematic diagram of still another policy control method provided by the present application.
  • Figure 12 is a schematic diagram of a device provided by the present application.
  • FIG. 13 is a schematic diagram of still another apparatus provided by the present application.
  • the network architecture and the service scenario described in the embodiments of the present application are for the purpose of more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation of the technical solutions provided by the embodiments of the present application.
  • the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
  • the device is mainly used for reselection of a mobility management network element in a roaming scenario, and the related devices mainly include a policy control network element and a mobility management network element.
  • the mobility management network element in this application is mainly used for mobility management in a mobile network, such as user location update, user registration network, user handover, and the like.
  • the mobility management network element may be an access and mobility management function (AMF) network element, and in future communication, such as 6th generation (6th generation, 6G) communication, mobility management
  • AMF access and mobility management function
  • 6th generation, 6G 6th generation
  • the network element may still be an AMF network element, or have other names, which is not limited in this application.
  • the policy control network element in the present application includes a user subscription data management function, a policy control function, a charging policy control function, and a quality of service (QoS) control function.
  • the policy control network element may be a policy control function (PCF) network element.
  • PCF policy control function
  • future communication such as 6G, the policy control network element may still be a PCF network element, or have other names. Make a limit.
  • the present application is referred to as an AMF network element by a mobility management network element, and a policy control network element is referred to as a PCF network element as an example.
  • AMF AMF
  • PCF PCF network element
  • the PCF located in the vPLMN is referred to as a visited PCF (vPCF), and the PCF located in the hPLMN is referred to as a home PCF (home PCF, hPCF).
  • vPCF visited PCF
  • home PCF home PCF
  • the AMF used by the terminal is located in the vPLMN, and based on the scenario, the PCF used by the terminal at the home location is referred to as the second hPCF (or Old hPCF) before the reselection occurs.
  • the PCF used in the visit is called the second vPCF (or Old vPCF)
  • the AMF used by the terminal is called the second AMF (or Old AMF).
  • the second hPCF creates a policy association for the terminal according to the request of the second vPCF, where the policy association is referred to as a first policy association, or the second hPCF and the second vPCF create a first policy association for the terminal, first
  • the policy association refers to an association between the second vPCF and the second hPCF, the association is used by the second hPCF to deliver the current access-related parameters of the terminal to the second vPCF, and for the second hPCF to provide the second vPCF The relevant strategy of the terminal.
  • the information associated with the first policy includes the information about the policy association stored in the second vPCF, for example, the identifier of the second hPCF, and the identifier of the resource corresponding to the first policy association.
  • the identifier of the first resource) and the policy of the terminal formulated and provided by the second hPCF.
  • the information associated with the first policy includes information about the policy association stored in the second hPCF, such as an identifier including the second vPCF, an address of the second vPCF for receiving the policy update, and a second hPCF is a strategy formulated by the terminal.
  • the second hPCF may also create the foregoing first policy association for the terminal according to the request of other network elements (such as other PCFs).
  • the second vPCF creates a policy association for the terminal according to the request of the second AMF, where the policy association is referred to as a second policy association, or the second vPCF and the second AMF create a second policy association for the terminal, and second The policy association refers to an association between the second hPCF and the second AMF, the association being used by the second vPCF to deliver the current access-related parameters of the terminal to the second AMF, and for the second vPCF to provide the second AMF.
  • the relevant strategy of the terminal refers to an association between the second hPCF and the second AMF, the association being used by the second vPCF to deliver the current access-related parameters of the terminal to the second AMF, and for the second vPCF to provide the second AMF.
  • the information associated with the second policy is included in the second AMF side, and the information about the policy association stored in the second AMF, for example, the identifier of the second vPCF, and the identifier of the resource corresponding to the second policy association.
  • the identity of the second resource) and the policy of the terminal developed and provided by the second vPCF.
  • the information associated with the second policy includes information about the policy association stored in the second hPCF, such as an identifier including the second AMF, an address of the second AMF for receiving the policy update, and a second vPCF is a strategy developed for the terminal.
  • the second vPCF may also create the foregoing second policy association for the terminal according to the request of other network elements (such as other AMFs).
  • the AMF used by the terminal at the home location is referred to as the first AMF.
  • the PCF used by the terminal in the visited place and the PCF used by the terminal at the home location need to be separately described according to different scenarios. The different scenarios to which the present application is applied will be separately described below with reference to FIGS. 1(a) to 1(b).
  • the AMF used by the terminal refers to the AMF that provides the service for the terminal
  • the vPCF used by the terminal refers to the vPCF that provides the service for the terminal
  • the hPCF used by the terminal refers to the hPCF that provides the service for the terminal.
  • the network architecture includes a first AMF and a second vPCF.
  • the network architecture may further include a second AMF and a second hPCF, where the first AMF, the second AMF, and the second vPCF are located in the same vPLMN, and the second hPCF is located in hPLMN.
  • the scenario based on the network architecture is: before the AMF reselection, the AMF used by the terminal is the second AMF, the PCF used by the terminal in the visited place is the second vPCF, and the PCF used by the terminal at the home location is the second hPCF. After the AMF reselection occurs, the AMF used by the terminal is the first AMF.
  • the PCF of the home location selected by the first AMF is the second hPCF and the PCF of the visited place selected by the first AMF is In the second vPCF
  • the PCF of the home location selected by the first AMF is a first hPCF (also may be referred to as New hPCF, not shown in the figure) and the PCF of the visited place selected by the first AMF It is the first vPCF (also known as New vPCF, not shown).
  • the network architecture includes a first AMF, a first vPCF, and a second hPCF.
  • the network architecture may further include a second AMF and a second vPCF, where the first AMF and the first vPCF are located in the first vPLMN, and the second The AMF and the second vPCF are located in the second vPLMN, the first vPLMN is different from the second vPLMN, and the second hPCF is located in the hPLMN.
  • the scenario based on the network architecture is: before the AMF reselection, the AMF used by the terminal is the second AMF, the PCF used by the terminal in the visited place is the second vPCF, and the PCF used by the terminal at the home location is the second hPCF. After the AMF reselection occurs, the AMF used by the terminal is the first AMF.
  • the PCF of the home location selected by the first AMF is the second hPCF and the PCF of the visited place selected by the first AMF is The first vPCF (also referred to as New vPCF, not shown in the figure), in another case, the PCF of the home location selected by the first AMF is the first hPCF (also referred to as New hPCF, not shown in the figure) And the PCF of the visited place selected by the first AMF is the first vPCF.
  • the PCF used by the terminal at the home location is referred to as the second hPCF (or Old hPCF) before the reselection occurs.
  • the AMF used is called the second AMF (or Old AMF).
  • the second hPCF creates a policy association for the terminal according to the request of the second AMF, where the policy association is referred to as the first policy association, or the second hPCF and the second AMF create the first policy association for the terminal, first
  • the policy association refers to an association between the second AMF and the second hPCF, the association is used by the second hPCF to deliver the current access-related parameters of the terminal to the second AMF, and for the second hPCF to provide the second AMF.
  • the relevant strategy of the terminal refers to an association between the second AMF and the second hPCF, the association is used by the second hPCF to deliver the current access-related parameters of the terminal to the second AMF, and for the second hPCF to provide the second AMF.
  • the information associated with the first policy includes the information about the policy association stored in the second AMF, for example, the identifier of the second hPCF, and the identifier of the resource corresponding to the first policy association (referred to as the second AMF side).
  • the identifier of the first resource) and the policy of the terminal formulated and provided by the second hPCF.
  • the information associated with the first policy includes information about the policy association stored in the second hPCF, such as an identifier including the second AMF, an address of the second AMF for receiving the policy update, and a second hPCF is a strategy formulated by the terminal.
  • the network architecture includes a first AMF, a first vPCF, and a second hPCF.
  • the network architecture may further include a second AMF.
  • the first AMF and the first vPCF are located in the same vPLMN (referred to as a first vPLMN), and the second AMF and the second hPCF are located in the hPLMN.
  • the scenario based on the network architecture is that the AMF used by the terminal is the second AMF before the AMF reselection occurs, and the PCF used by the terminal at the home location is the second hPCF.
  • the AMF used by the terminal is the first AMF.
  • the PCF of the home location selected by the first AMF is the second hPCF, and the PCF of the visited place selected by the first AMF.
  • the first vPCF also referred to as New vPCF, not shown in the figure.
  • the PCF of the home location selected by the first AMF is the first hPCF (also referred to as New hPCF, not shown in the figure). Shown), and the PCF of the visited place selected by the first AMF is the first vPCF.
  • the present invention provides a policy control method, which is applicable to the network architecture and application scenario shown in FIG. 1(a).
  • the method includes the following steps:
  • Step 201 The first AMF sends a request message to the second AMF.
  • the second AMF can receive the request message.
  • the request message can be used to request the context of the acquiring terminal.
  • step 201 is an optional step, and the step may not be performed in an actual application.
  • Step 202 The second AMF sends the context of the terminal to the first AMF.
  • the first AMF can receive the context of the terminal.
  • the information about the second policy association is included in the context of the terminal that is sent by the second AMF to the first AMF, and the information associated with the second policy includes the identifier of the second vPCF.
  • the second vPCF is a PCF associated with the second AMF at the visited place.
  • the second vPCF is referred to as a PCF used by the second AMF, or the second vPCF is referred to as a PCF selected by the second AMF.
  • the second AMF since the first AMF and the second AMF are in the same PLMN, the second AMF carries the identifier of the second vPCF in the policy-related information and sends the identifier to the first AMF. If the second AMF determines that the first AMF is not in the same PLMN as the second AMF, the second AMF may not send the identity of the second vPCF to the first AMF because the first AMF can only use the vPCF in the same PLMN.
  • the information related to the second policy in the context of the terminal that is sent by the second AMF to the first AMF may further include the identifier of the second hPCF.
  • step 203 the second AMF starts a timer.
  • the timer corresponds to a set duration.
  • the specific value of the duration can be set according to actual needs or obtained from other network elements, such as a unified data management metn (UDM) network element.
  • UDM unified data management metn
  • the duration generally ensures that under normal circumstances, the second AMF can receive the notification message of the second vPCF before the timeout.
  • the first notification message is used to notify the second AMF that the second vPCF has received a message for requesting to update the second policy association.
  • the message for requesting to update the second policy association may be sent by the first AMF. Update request message.
  • the timer will time out.
  • the first AMF after receiving the context of the terminal that is sent by the second AMF, the first AMF obtains the information associated with the second policy, and the information associated with the second policy includes the identifier of the second vPCF, the second vPCF. This is the vPCF used by the second AMF.
  • the first AMF decides whether to use the second vPCF.
  • the first AMF decides to use the second vPCF, ie the vPCF selected by the first AMF is the same vPCF as the vPCF used by the second AMF. If the first AMF decides to use the second vPCF, then the following steps 204-209 are performed.
  • the first AMF decides not to use the second vPCF, ie the first AMF reselects a second vPCF different from the second AMF usage, such as reselecting a first vPCF. If the first AMF decides not to use the second vPCF, then the following steps 210-216 are performed.
  • Step 204 The first AMF sends an update request message to the second vPCF.
  • the second vPCF can receive the update request message.
  • the update request message includes information of the first AMF.
  • the update request message may also be referred to as a first update request message.
  • the update request message is used to request the second vPCF to update the information of the second AMF in the information associated with the second policy to the information of the first AMF.
  • the information of the first AMF herein may include some or all of the following information: the identifier of the first AMF, the address of the first AMF for receiving the policy update, the current subscription policy of the terminal, or the current terminal.
  • the current subscription policy of the terminal may include a subscription policy such as a service area restriction policy or a wireless spectrum selection policy.
  • the current access information of the terminal may include information such as an access type, a time zone of the terminal, or a service network.
  • the information of the second AMF herein may include some or all of the following information: the identifier of the second AMF, the address of the second AMF for receiving the policy update, the subscription policy of the terminal, or the connection of the terminal. Enter information.
  • Step 205 The second vPCF updates the information associated with the second policy.
  • the second vPCF updates the information of the second AMF in the information associated with the second policy to the information of the first AMF according to the received update request message.
  • the update request message may further include an indication of the AMF change.
  • the indication of the AMF change is used to trigger the second vPCF to update the information associated with the second policy. That is, the second vPCF receives the update request message, and updates the information of the second AMF in the information associated with the second policy to the information of the first AMF according to the indication of the AMF change in the update request message.
  • the second vPCF updates the information associated with the second policy may include at least one of the following four operations, that is, may include one of the operations, or may include two of the operations, or may include the Three operations, or can include four of them:
  • the information related to the second policy that is acquired by the first AMF may further include the identifier of the second resource, where the second resource is the resource corresponding to the second policy created by the second vPCF. .
  • the update request message of the foregoing step 204 may further carry the identifier of the second resource, and the update request message is specifically used to request that the information of the second AMF in the information associated with the second policy in the second resource be updated to the first AMF information.
  • the specific method for the second vPCF to update the information associated with the second policy is: the second vPCF, according to the identifier of the second resource, the second AMF of the information associated with the second policy in the second resource. The information is updated to the information of the first AMF.
  • the information related to the second policy that is acquired by the first AMF may specifically include the information of the second resource, where the information of the second resource includes the identifier of the second resource and the identifier of the second vPCF.
  • the information of the second resource is a whole.
  • the first AMF cannot separately obtain the identifier of the second resource or the identifier of the second vPCF from the information of the second resource, but the information of the second resource includes the second resource.
  • the second resource is a resource corresponding to the second policy created by the second vPCF.
  • the update request message of the foregoing step 204 may further carry the resource of the second resource, and the update request message is specifically used to request that the information of the second AMF in the information associated with the second policy in the second resource be updated to the first AMF information.
  • the specific method for the second vPCF to update the information associated with the second policy is: the second vPCF, according to the information of the second resource, the second AMF of the information associated with the second policy in the second resource. The information is updated to the information of the first AMF.
  • the second vPCF may further update the policy previously formulated for the terminal according to the information associated with the updated policy. Further, after the second vPCF updates the policy formulated for the terminal, the updated policy may also be sent to the address of the second AMF for receiving the policy update.
  • the first AMF, the second AMF, and the second vPCF are all located in the same vPLMN, if the first AMF selects the second vPCF in the scenario, the first AMF is defaulted. The second hPCF is also selected. After the step 205, the following steps 206-208 may also be included.
  • Step 206 The second vPCF sends an update request message to the second hPCF.
  • the second hPCF can receive the update request message.
  • the update request message may also be referred to as a second update request message.
  • the update request message is used to request the second hPCF to update the information associated with the first policy.
  • the second vPCF When the first AMF sends a policy control request trigger (Policy Control Request Trigger) to the second vPCF before the change of the subscription policy of the terminal or the access information of the terminal in the step 204, the second vPCF The second hPCF sends an update request message (ie, step 206), where the update request message includes the subscription policy of the terminal or the access information of the terminal; otherwise, the second vPCF does not need to send the update request message (ie, step 206 is not performed).
  • Policy Control Request Trigger Policy Control Request Trigger
  • Step 207 The second hPCF updates the information associated with the first policy.
  • the second hPCF can perform the following update operations: updating the policy of the terminal, updating the access information of the terminal, and the like.
  • Step 208 The second hPCF sends a notification message to the second vPCF, and correspondingly, the second vPCF can receive the notification message.
  • the notification message is used to notify the second vPCF that the second hPCF receives the message for requesting to update the first policy association, or it can be understood that the notification message is used to notify the second vPCF that the second hPCF has received the second Update request message. Or it can be understood that the notification message is used to notify the second vPCF that the second AMF selects the second hPCF.
  • This step is an optional step and is performed only if step 206 is performed.
  • Step 209 The second vPCF sends a first notification message to the second AMF.
  • the second AMF can receive the first notification message.
  • the first notification message is used to notify the second AMF that the second vPCF has received a message for requesting to update the second policy association, that is, the second vPCF has received the update request message of step 204 above.
  • the timer stops counting. If the second AMF does not receive the first notification message sent by the second vPCF before the timer expires, the timer will time out.
  • the second AMF does not send a second request message to the second vPCF to request the second vPCF to delete the second policy association.
  • the second AMF receives the first notification message, and the second AMF receives the first notification message.
  • the timer has not timed out.
  • the second AMF still sends a second policy to the PCF for requesting the second vPCF to delete the second policy.
  • the associated delete request message will continue to perform the following step 211.
  • the second vPCF may ignore the delete request message after receiving the delete request message.
  • the second vPCF may be configured according to the update request message.
  • the information of the second AMF in the associated information is updated to the information of the first AMF, wherein the information of the first AMF is carried in the update request message. Since the second vPCF does not need to delete the information of the second AMF in the information associated with the second policy of the terminal, and does not need to re-establish the policy association with the first AMF, directly the second AMF in the information associated with the second policy.
  • the information is updated to the information of the first AMF, so that the first AMF does not need to create a new resource on the second vPCF, and the PCF does not need to interact with the unified data repository (UDR) to obtain the subscription data of the terminal and
  • UDR unified data repository
  • the first AMF will select other vPCFs and other hPCFs, such as the first vPCF and the first hPCF.
  • the first AMF sends a request message to the first vPCF, where the request message may include an identifier of the terminal, an identifier of the first AMF, a notification address of the first AMF for receiving the policy update, and an identifier of the first hPCF, where the request message is used.
  • the first vPCF further sends a request message to the first hPCF, where the message carries the identifier of the first vPCF and the notification address of the first vPCF receiving policy update.
  • the first vPCF may save the information carried by the first AMF in the request message, and the first hPCF saves the information carried by the first vPCF in the request message.
  • the first hPCF and the UDR interact to obtain the subscription data of the terminal, and the first hPCF formulates a policy for the terminal, and formulates a corresponding policy to the first vPCF, and the first vPCF further provides the policy to the first AMF.
  • the first vPCF can also formulate policies for the terminal according to local policies and provide them to the first AMF.
  • the first AMF performs a corresponding policy. Further, the first AMF may also provide the policy to the terminal for execution.
  • the following steps 210-216 may also be performed.
  • Step 210 The second AMF determines that the timer expires.
  • step 204 - step 209 is not performed. Therefore, the second AMF does not receive the first notification message in the above step 209 before the timer expires, and thus the timer will time out.
  • the first AMF decides to use the second vPCF described above, and performs the above step 204 - step 209, but before the second AMF receives the first notification message of step 209, the timer has timed out.
  • the second AMF also determines that the timer has timed out.
  • Step 211 The second AMF sends a delete request message to the second vPCF, and correspondingly, the second vPCF can receive the delete request message.
  • the second AMF A delete request message is sent to the second vPCF, and the delete request message may also be referred to as a first delete request message.
  • the delete request message is used to request the second vPCF to delete the second policy association, and is used to instruct the second vPCF to request the second hPCF to delete the first policy association.
  • the deletion request message includes a first deletion indication, where the first deletion indication is used to instruct the second vPCF to request the second hPCF to delete the first policy association.
  • Step 212 The second vPCF deletes information associated with the second policy.
  • the second vPCF may delete the information of the second AMF in the information associated with the second policy.
  • Step 213 The second vPCF sends a delete request message to the second hPCF, and correspondingly, the second hPCF can receive the delete request message.
  • the delete request message is used to request the second hPCF to delete the first policy association. Specifically, the deletion request message is used to request the second hPCF to delete the information associated with the first policy.
  • Step 214 The second hPCF deletes the information associated with the first policy.
  • the second hPCF may delete the information of the second vPCF in the information associated with the first policy.
  • Step 215 The second hPCF sends a deletion notification message to the second vPCF, and correspondingly, the second vPCF may receive the deletion notification message.
  • the delete notification message is used to notify that the information of the first policy has been deleted.
  • This step is an optional step.
  • Step 216 The second vPCF sends a deletion notification message to the second AMF, and correspondingly, the second AMF may receive the deletion notification message.
  • the delete notification message is used to notify that the information of the second policy has been deleted.
  • This step is an optional step.
  • the first AMF determines to use a different vPCF than the second AMF, then the first AMF does not send an update request message to the second vPCF, so that the second vPCF does not send the first notification message to the second AMF. Further, the second AMF may request the second vPCF to delete the information associated with the second policy, and the second vPCF may request the second hPCF to delete the information associated with the first policy.
  • the information related to the second policy that is no longer used by the second vPCF is deleted, and the information associated with the first policy that is no longer used by the second hPCF is deleted, thereby helping to avoid the error of the second vPCF and the second hPCF. decision making.
  • FIG. 2 only shows some steps in the AMF reselection process.
  • Another method for controlling a policy provided by the present application is also applicable to the network architecture and application scenario shown in FIG. 1(a).
  • the method includes the following steps:
  • Steps 301 to 302 are the same as steps 201 to 202 of the embodiment shown in FIG. 2, and the above description can be referred to.
  • Step 303 The second AMF sends a delete request message to the second vPCF, and correspondingly, the second vPCF can receive the delete request message.
  • the delete request message may also be referred to as a second delete request message.
  • the delete request message is used to request to delete the second policy association. Specifically, the delete request message is used to request the second vPCF to delete the information associated with the second policy, including deleting the information of the second AMF in the information associated with the second policy. In an implementation manner, the delete request message is specifically configured to instruct the second vPCF to delete the second policy association when the message for requesting to update the second policy association is not received.
  • step 304 the second vPCF starts a timer.
  • the second vPCF may not immediately delete the second policy association, but start a timer.
  • the second vPCF After receiving the deletion request message, the second vPCF starts a timer according to the deletion request message.
  • the deletion request message of the foregoing step 303 may further include a deletion indication, where the deletion indication is used to indicate that the second vPCF deletes the second message when the message for requesting to update the second policy association is not received. Policy association. That is, the second vPCF is instructed to delete the second policy association when the update request message is not received.
  • the PCF may start a timer according to the deletion indication in the deletion request message.
  • the deletion indication here is a conditional deletion indication, that is, for indicating the second vPCF: if the message for requesting to update the second policy association is not received, such as the above update request message, the second policy association is deleted.
  • the deletion indication may also use any of the following implementation manners: for example, the deletion indication may be used to indicate that the second vPCF does not delete the message that is requested to update the second policy association if it receives the first AMF transmission. Second strategy association.
  • the deletion indication may be further used to indicate that the second vPCF does not delete the second policy association if the first AMF sends a message for requesting to update the second policy association, and the second vPCF does not receive the request for the update.
  • the message associated with the second policy deletes the second policy association.
  • the deleting the second policy association specifically refers to deleting the information associated with the second policy.
  • the deletion request message of the foregoing step 303 may further include an indication of the AMF change, where the indication of the AMF change is used to notify the second vPCF that the AMF changes, or that the indication of the AMF change is used to indicate The delete request message is triggered by a change in the AMF.
  • the PCF may start a timer according to the indication of the AMF change in the deletion request message.
  • Step 305 The second vPCF sends a delete request message to the second hPCF, and correspondingly, the second hPCF can receive the delete request message.
  • the delete request message may also be referred to as a third delete request message.
  • the delete request message is used to request to delete the first policy association.
  • the deletion request message is used to request the second hPCF to delete the first policy association, including deleting information associated with the first policy, for example, deleting all information related to the first policy.
  • the deletion request message may be specifically used to indicate that the second hPCF deletes the first policy association when the message for requesting to update the first policy association is not received.
  • Step 306 the second hPCF starts a timer.
  • the second hPCF may not delete the first policy association immediately, but start a timer.
  • the second hPCF After receiving the deletion request message, the second hPCF starts a timer according to the deletion request message.
  • the deletion request message of the foregoing step 305 may further include a deletion indication, where the deletion indication is used to indicate that the second hPCF deletes the first message when the message for requesting to update the first policy association is not received. Policy association. That is, the second hPCF is instructed to delete the first policy association when the update request message is not received.
  • the second hPCF may start a timer according to the deletion indication in the deletion request message.
  • the deletion indication here is a conditional deletion indication, that is, for indicating the second hPCF: if the message for requesting to update the first policy association is not received, such as the above update request message, the first policy association is deleted.
  • the deletion indication may also use any of the following implementation manners: for example, the deletion indication may be used to indicate that the first hPCF does not delete the first policy association if it receives a message for requesting to update the first policy association.
  • the deletion indication may further be used to indicate that the second hPCF does not delete the first policy association if receiving the message for requesting to update the first policy association, and the second hPCF does not receive the request for updating the first policy association.
  • the message deletes the second policy association.
  • the first policy association is deleted, which specifically refers to deleting the information associated with the first policy.
  • the deletion request message of the foregoing step 305 may further include an indication of the AMF change, where the indication of the AMF change is used to notify the second hPCF that the AMF changes, or that the indication of the AMF change is used to indicate The delete request message is triggered by a change in the AMF.
  • the timer may be started according to the indication of the AMF change in the delete request message.
  • the first AMF after receiving the context of the terminal that is sent by the second AMF, the first AMF obtains the information associated with the second policy, and the information associated with the second policy includes the identifier of the second vPCF, the second vPCF. This is the vPCF used by the second AMF.
  • the first AMF decides whether to use the second vPCF.
  • the first AMF decides to use the second vPCF, ie the second vPCF selected by the first AMF and the second vPCF used by the second AMF are the same vPCF. If the first AMF decides to use the second vPCF, then the following steps 307-310 are performed.
  • the first AMF decides not to use the second vPCF, that is, the first AMF reselects a second vPCF different from the second AMF usage, such as reselecting a first vPCF, and also needs to reselect an hPCF. For example, select the first hPCF. If the first AMF decides not to use the second vPCF, then the following steps 311 - 316 are performed.
  • Steps 307-310 with reference to step 204-step 207 in the embodiment shown in FIG. 2, refer to the foregoing description, and details are not described herein again.
  • step 308-310 is performed. If the second vPCF receives the update request message in step 307, the timer has timed out, then steps 308-310 are not performed, but steps 311-316 are performed.
  • the second policy stored in the second vPCF may be used according to the update request message.
  • the information of the second AMF in the associated information is updated to the information of the first AMF, wherein the information of the first AMF is carried in the update request message.
  • the second vPCF further sends an update request new message to the second hPCF, and the information related to the first policy stored in the second hPCF is updated according to the information carried in the update request message according to the update request message.
  • the second vPCF does not need to delete the information of the second AMF in the information associated with the second policy of the terminal, and does not need to re-establish the policy association with the first AMF, directly the second AMF in the information associated with the second policy.
  • the information is updated to the first AMF information so that no new resources need to be created for the first AMF on the second vPCF.
  • the second hPCF does not need to create a new resource, and the second hPCF does not need to interact with the UDR to obtain the subscription data of the terminal and the policy previously defined for the terminal, thereby saving resource overhead of policy control.
  • the first AMF selects another vPCF (such as the first vPCF) and other hPCFs (such as the first hPCF).
  • the first AMF sends a request message to the first vPCF, where the request message may include an identifier of the terminal, an identifier of the first AMF, a notification address of the receiving policy update of the first AMF, and a first hPCF, where the request message is used to request to create the first
  • the first vPCF further sends a request message to the first hPCF, where the message carries the identifier of the first vPCF and the notification address of the receiving policy update of the first vPCF.
  • the first vPCF may store information carried by the first AMF in the request message, where the first hPCF includes information carried by the first vPCF in the request message.
  • the first hPCF interacts with the UDR to obtain the subscription data of the terminal, and the hvPCF formulates a policy for the terminal, and formulates a corresponding policy to the first vPCF, and the first vPCF further provides the policy to the first AMF.
  • the first vPCF can also formulate a policy for the terminal according to the local policy and provide it to the first AMF.
  • the first AMF performs a corresponding policy. Further, the first AMF may also provide the policy to the terminal for execution.
  • step 311 the second vPCF determines that the timer expires.
  • step 307-step 310 is not performed, and thus the second vPCF does not receive the update request message in step 307 above before the timer expires, and thus the timer will time out.
  • the first AMF decides to use the second vPCF described above and performs the above step 307, but before the second vPCF receives the update request message of step 307, the timer has timed out.
  • the first The second vPCF will also determine the timer timeout.
  • Step 312 The second vPCF deletes the information associated with the second policy.
  • step 313 the second hPCF determines that the timer expires.
  • Step 314 The second hPCF deletes the information associated with the first policy.
  • the first AMF determines to use a different vPCF than the second AMF, then the first AMF does not send an update request message to the second vPCF, and thus the timer on the second vPCF will time out.
  • the second vPCF may delete the information associated with the second policy, and the timer on the second hPCF may also expire, so the second hPCF deletes the information associated with the first policy.
  • the information related to the second policy that is no longer used by the second vPCF is deleted, and the information associated with the first policy that is no longer used by the second hPCF is deleted, thereby helping to avoid the error of the second vPCF and the second hPCF. decision making.
  • FIG. 3 only shows some steps in the AMF reselection process.
  • the present invention provides a policy control method, which is applicable to the network architecture and application scenario shown in FIG. 1(b).
  • the method includes the following steps:
  • Step 401 The first AMF sends a request message to the second AMF.
  • the second AMF can receive the request message.
  • the request message can be used to request the context of the acquiring terminal.
  • step 401 is an optional step, and the step may not be performed in an actual application.
  • Step 402 The second AMF sends the context of the terminal to the first AMF.
  • the first AMF can receive the context of the terminal.
  • the information of the first policy association (Policy Association) is included in the context of the terminal that is sent by the second AMF to the first AMF, and the information associated with the first policy includes the identifier of the second hPCF.
  • the second hPCF is a PCF associated with the second vPCF at the visited place.
  • the second AMF since the first AMF and the second AMF are in different PLMNs, the second AMF does not carry the identifier of the second vPCF in the policy-related information and sends the information to the first AMF, because the first AMF only Use the vPCF of the same VPLMN.
  • step 403 the second AMF starts a timer.
  • This timer can also be referred to as a first timer.
  • the timer corresponds to a set duration.
  • the specific value of the duration can be set according to actual needs or obtained from other network elements, such as UDM network elements.
  • the duration generally ensures that under normal circumstances, the second AMF can receive the notification message of the second vPCF (which can also be considered as the notification message from the second hPCF) before the timeout. .
  • the first notification message is used to notify the second AMF that the second hPCF has received a message for requesting to update the first policy association.
  • the timer will time out.
  • the first AMF after receiving the context of the terminal that is sent by the second AMF, the first AMF obtains the information associated with the first policy, and the information associated with the first policy includes the identifier of the second hPCF, the second hPCF. This is the hPCF used by the second AMF.
  • the first AMF decides whether to use the second hPCF.
  • the first AMF decides to use the second hPCF, the specific first AMF selected vPCF (which may be referred to as the first vPCF) and the second AMF used second vPCF are different vPCFs, but the first AMF The selected hPCF is the same hPCF as the second hPCF used by the second AMF, ie the second hPCF. If the first AMF decides to use the first vPCF and the second hPCF, then the following steps 404-411 are performed.
  • the first AMF decides not to use the second hPCF, and the specific first AMF selected vPCF (which may be referred to as the first vPCF) and the second AMF used second vPCF are different vPCFs, and The hPCF selected by an AMF (which may be referred to as the first hPCF) is not the same hPCF as the hPCF used by the second AMF. If the first AMF decides to use the first vPCF and the first hPCF, then the following steps 404-Step 405 are performed, and Steps 412-416 are performed.
  • Step 404 The first AMF sends a setup request message to the first vPCF.
  • the first vPCF can receive the setup request message.
  • the setup request message includes update information and information of the first AMF.
  • the update information includes an identifier of the second hPCF, and the update information is used to instruct the first vPCF to send an update request message to the second hPCF.
  • the setup request message is used to request the first vPCF to create a third policy association for the terminal according to the information of the first AMF.
  • the information of the first policy of the context of the terminal in the foregoing step 402 includes the information of the first resource, where the information of the first resource includes the identifier of the second hPCF and the identifier of the first resource, where the first resource is the first policy.
  • the update information includes the information of the first resource, and the update information is used to indicate that the first vPCF sends the update request message to the second hPCF, where the information of the first resource in the update information is used to indicate the first vPCF direction.
  • the second hPCF sends an update request message.
  • the information received by the first AMF from the second AMF is information of the first resource, where the information of the first resource is included as a whole, and the information of the first resource includes the identifier of the second hPCF and the The identity of a resource, but not the identity of the second hPCF and the identity of the first resource.
  • the update information carried in the setup request message sent by the first AMF to the first vPCF specifically includes the information of the first resource.
  • the first vPCF may send an update request message to the second hPCF according to the information of the first resource in the update information.
  • the information of the first policy of the context of the terminal in the foregoing step 402 includes the identifier of the first resource and the identifier of the second hPCF, where the identifier of the first resource is used to identify the first resource.
  • the update information includes an identifier of the first resource and an identifier of the second hPCF, where the update information is used to indicate that the first vPCF sends the update request message to the second hPCF, specifically: the identifier of the first resource and the identifier of the second hPCF in the update information.
  • means for instructing the first vPCF to send an update request message to the second hPCF means for instructing the first vPCF to send an update request message to the second hPCF.
  • the first AMF receives the identifier of the first resource and the identifier of the second hPCF from the second AMF, that is, the first AMF may obtain the identifier of the first resource and the identifier of the second hPCF, respectively.
  • the update information carried in the setup request message sent by the first AMF to the first vPCF specifically includes the identifier of the first resource and the identifier of the second hPCF. Therefore, the first vPCF may send an update request message to the second hPCF according to the identifier of the first resource and the identifier of the second hPCF in the update information.
  • the information of the first policy of the context of the terminal in the foregoing step 402 includes the identifier of the second hPCF
  • the update information includes the indication information and the identifier of the second hPCF
  • the update information is used to instruct the first vPCF to send the update to the second hPCF.
  • the request message is specifically: the indication information in the update information and the identifier of the second hPCF are used to instruct the first vPCF to send an update request message to the second hPCF.
  • the first AMF receives the identifier of the second hPCF from the second AMF.
  • the update information carried in the setup request message sent by the first AMF to the first vPCF specifically includes the indication information and the identifier of the second hPCF. Therefore, the first vPCF may send an update request message to the second hPCF according to the indication information in the update information and the identifier of the second hPCF.
  • the indication information may be, for example, 1-bit information or the like.
  • Step 405 The first vPCF saves the received information, and creates a third policy association for the terminal according to the information of the first AMF.
  • the information of the first AMF herein may include some or all of the following information: the identifier of the first AMF, the address of the first AMF for receiving the policy update, the current subscription policy of the terminal, or the current terminal.
  • the current subscription policy of the terminal may include a subscription policy such as a service area restriction policy or a wireless spectrum selection policy.
  • the current access information of the terminal may include information such as an access type, a time zone of the terminal, or a service network.
  • Step 406 The first vPCF sends an update request message to the second hPCF according to the update information, and correspondingly, the second hPCF may receive the update request message.
  • the update request message includes information of the first vPCF, and the update request message is used to request the second hPCF to update the information of the second vPCF in the information associated with the first policy to the information of the first vPCF.
  • the information of the first vPCF herein may include an identifier of the first vPCF, a notification address used by the first vPCF to receive the policy update, a subscription when the terminal accesses through the first AMF, and access information of the terminal.
  • the information of the second vPCF herein may include an identifier of the second vPCF, a notification address used by the second vPCF to receive the policy update, a subscription when the terminal accesses through the second AMF, and access information of the terminal.
  • Step 407 The second hPCF updates the information associated with the first policy.
  • the second hPCF updates the information of the second vPCF in the information associated with the first policy to the information of the first vPCF according to the received update request message.
  • the update request message may further include an indication of the AMF change.
  • the indication of the AMF change is used to trigger the second hPCF to update the information associated with the first policy. That is, the second hPCF receives the update request message, and updates the information of the second vPCF in the information associated with the first policy to the information of the first vPCF according to the indication of the AMF change in the update request message.
  • the second hPCF updates the information associated with the first policy may include at least one of the following four operations, that is, may include one of the operations, or may include two of the operations, or may include the Three operations, or can include four of them:
  • the information related to the first policy that is acquired by the first AMF may further include the identifier of the first resource, where the first resource is the resource corresponding to the first policy created by the second hPCF. .
  • the identifier of the first resource may also be carried in the setup request message of the foregoing step 404.
  • the update request message in the above step 506 may carry the identifier of the first resource.
  • the specific method for the second hPCF to update the information associated with the first policy is: the second hPCF, according to the identifier of the first resource, the second vPCF in the information associated with the first policy in the first resource. The information is updated to the information of the first vPCF.
  • the information related to the first policy that is acquired by the first AMF may specifically include the information of the first resource, where the information of the first resource includes the identifier of the first resource and the identifier of the second hPCF.
  • the information of the first resource is a whole, and the first AMF cannot separately obtain the identifier of the first resource or the identifier of the first hPCF from the information of the first resource, but the information of the first resource includes the first resource.
  • the first resource is a resource corresponding to the first policy created by the second hPCF.
  • the update request message of the foregoing step 406 may further carry the resource of the first resource, and the update request message is specifically used to request that the information of the second vPCF in the information associated with the first policy in the first resource be updated to the first vPCF information.
  • the specific method for the second hPCF to update the information associated with the first policy is: the second hPCF, according to the information of the first resource, the second vPCF in the information associated with the first policy in the first resource. The information is updated to the information of the first vPCF.
  • the second hPCF may further update the policy previously formulated for the terminal according to the information associated with the updated policy. Further, after the second hPCF updates the policy formulated for the terminal, the updated policy may also be sent to the address of the second vPCF for receiving the policy update.
  • Step 408 The second hPCF sends a notification message to the second vPCF, and correspondingly, the second vPCF can receive the notification message.
  • the notification message is used to notify the second vPCF that the second hPCF has received a message for requesting to update the first policy association, or it can be understood that the notification message is used to notify the second vPCF that the second hPCF has received the above step 406. Update request message. Or it can be understood that the notification message is used to notify the second vPCF that the second AMF selects the second hPCF.
  • the information may be associated with the first policy stored in the second hPCF according to the update request message.
  • the information of the second vPCF is updated to the information of the first vPCF.
  • the second hPCF does not need to delete the information of the second vPCF in the information associated with the first policy, and does not need to re-establish the policy association with the first vPCF, but directly directly compares the second vPCF in the information associated with the first policy.
  • the information is updated to the information of the first vPCF, so that the new vPCF does not need to create a new resource on the second hPCF, and the second hPCF does not need to interact with the UDR to obtain the subscription data of the terminal and the policy previously formulated for the terminal. Therefore, the resource overhead of policy control can be saved.
  • Step 409 The second vPCF sends a first notification message to the second AMF, and correspondingly, the second AMF may receive the first notification message.
  • the first notification message is used to notify the second AMF that the second hPCF has received a message for requesting to update the first policy association, or it can be understood that the first notification message is used to notify the second AMF that the second hPCF has received The update request message in the above step 406.
  • Step 410 The second AMF receives the first notification message from the second vPCF before the timer expires, and the second AMF sends a delete request message to the second vPCF, where the delete request message is used to request the second vPCF to delete the second policy. Association.
  • the delete request message may be referred to as a second delete request message.
  • the deletion request message includes a second deletion indication, where the second deletion indication is used to indicate that the second vPCF does not request to delete the first policy association from the second hPCF.
  • Step 411 The second vPCF deletes information associated with the second policy.
  • the second vPCF may delete the information of the second AMF in the information associated with the second policy.
  • step 412 the second AMF determines that the timer expires.
  • the second AMF Since the first AMF decides not to use the second hPCF, the second AMF does not receive the first notification message sent by the second vPCF before the timer expires, and the first notification message is used to notify the second AMF: the second hPCF A message is received for requesting to update the first policy association. Therefore the timer will time out.
  • Step 413 The second AMF sends a delete request message to the second vPCF, and correspondingly, the second vPCF can receive the delete request message.
  • the second AMF Since the second AMF does not receive the first notification message from the second vPCF before the timer expires, the second AMF sends a deletion request message to the second vPCF, and the deletion request message may also be referred to as a first deletion request message.
  • the delete request message is used to request the second vPCF to delete the second policy association, and is used to instruct the second vPCF to request the second hPCF to delete the first policy association.
  • the deletion request message includes a first deletion indication, where the first deletion indication is used to instruct the second vPCF to request the second hPCF to delete the first policy association.
  • step 414 the second vPCF deletes the information associated with the second policy.
  • the second vPCF may delete the information of the second AMF in the information associated with the second policy.
  • Step 415 The second vPCF sends a delete request message to the second hPCF, and correspondingly, the second hPCF can receive the delete request message.
  • the delete request message is used to request the second hPCF to delete the first policy association.
  • Step 416 The second hPCF deletes the information associated with the first policy.
  • the second hPCF may delete the information of the second vPCF in the information associated with the first policy.
  • the first AMF determines to use a different hPCF than the second AMF, then the first vPCF does not send an update request message to the second hPCF, so that the second vPCF does not send the first notification message to the second AMF. Further, the second AMF may request the second vPCF to delete the information associated with the second policy, and the second vPCF may request the second hPCF to delete the information associated with the first policy.
  • the information related to the second policy that is no longer used by the second vPCF is deleted, and the information associated with the first policy that is no longer used by the second hPCF is deleted, thereby helping to avoid the error of the second vPCF and the second hPCF. decision making.
  • FIG. 4 only shows some steps in the AMF reselection process.
  • Another method for controlling a policy provided by the present application is also applicable to the network architecture and application scenario shown in FIG. 1(b).
  • the method includes the following steps:
  • Step 501 The first AMF sends a request message to the second AMF.
  • the second AMF can receive the request message.
  • the request message can be used to request the context of the acquiring terminal.
  • step 501 is an optional step, and the step may not be performed in an actual application.
  • Step 502 The second AMF sends the context of the terminal to the first AMF.
  • the first AMF can receive the context of the terminal.
  • the information of the first policy association (Policy Association) is included in the context of the terminal that is sent by the second AMF to the first AMF, and the information associated with the first policy includes the identifier of the second hPCF.
  • the second hPCF is a PCF associated with the second vPCF at the visited place.
  • the second AMF since the first AMF and the second AMF are in different PLMNs, the second AMF does not carry the identifier of the second vPCF in the policy-related information and sends the information to the first AMF. It can also be understood that the second AMF does not allow the first AMF to use the second vPCF.
  • Step 503 The second AMF sends a delete request message to the second vPCF.
  • the second vPCF can receive the delete request message.
  • the delete request message may also be referred to as a third delete request message.
  • the delete request message is used to request to delete the second policy association.
  • the delete request message is used to request the second vPCF to delete the second policy association, including deleting the information of the second AMF in the information associated with the second policy.
  • the delete request message is specifically configured to instruct the second vPCF to delete the second policy association when the message for requesting to update the second policy association is not received.
  • step 504 the second vPCF starts a timer.
  • the second vPCF may not immediately delete the second policy association, but start a timer.
  • the second vPCF After receiving the deletion request message, the second vPCF starts a timer according to the deletion request message.
  • the deletion request message in the foregoing step 503 may further include a deletion indication, where the deletion indication is used to indicate that the second vPCF deletes the second message when the message for requesting to update the second policy association is not received. Policy association. That is, the second vPCF is instructed to delete the second policy association when the update request message is not received.
  • the PCF may start a timer according to the deletion indication in the deletion request message.
  • the deletion indication here is a conditional deletion indication, that is, for indicating the second vPCF: if the message for requesting to update the second policy association is not received, the second policy association is deleted.
  • the deletion request message of the foregoing step 303 may further include an indication of the AMF change, where the indication of the AMF change is used to notify the second vPCF that the AMF changes, or that the indication of the AMF change is used to indicate The delete request message is triggered by a change in the AMF.
  • the timer may be started according to the indication of the AMF change in the delete request message.
  • Step 505 The second vPCF sends a delete request message to the second hPCF, and correspondingly, the second hPCF can receive the delete request message.
  • the delete request message may also be referred to as a fourth delete request message.
  • the delete request message is used to request to delete the first policy association.
  • the delete request message is used to request the second hPCF to delete the first policy association, including deleting all information related to the first policy association.
  • the deletion request message may be specifically used to indicate that the second hPCF deletes the first policy association when the message for requesting to update the first policy association is not received.
  • step 506 the second hPCF starts a timer.
  • the second hPCF may not immediately delete the first policy association, but start a timer.
  • the second hPCF After receiving the deletion request message, the second hPCF starts a timer according to the deletion request message.
  • the deletion request message of the foregoing step 505 may further include a deletion indication, where the deletion indication is used to indicate that the second hPCF deletes the first message when the message for requesting to update the first policy association is not received. Policy association. That is, the second hPCF is instructed to delete the first policy association when the update request message is not received.
  • the PCF may start a timer according to the deletion indication in the deletion request message.
  • the deletion indication here is a conditional deletion indication, that is, for indicating the second hPCF: if the message for requesting to update the first policy association is not received, the first policy association is deleted.
  • the deletion request message of the foregoing step 505 may further include an indication of the AMF change, where the indication of the AMF change is used to notify the second hPCF that the AMF changes, or that the indication of the AMF change is used to indicate The delete request message is triggered by a change in the AMF.
  • the timer may be started according to the indication of the AMF change in the delete request message.
  • the first AMF after receiving the context of the terminal that is sent by the second AMF, the first AMF obtains the information associated with the first policy, and the information associated with the first policy includes the identifier of the second hPCF, the second hPCF This is the hPCF used by the second AMF.
  • the first AMF decides whether to use the second hPCF.
  • the first AMF decides to use the second hPCF.
  • the first AMF selected vPCF (which may be referred to as a first vPCF) and the second AMF used second vPCF are different vPCFs, but first The hPCF selected by the AMF is the same hPCF as the hPCF used by the second AMF, that is, the second hPCF. If the first AMF decides to use the first vPCF and the second hPCF, then the following steps 509-512 are performed.
  • the first AMF decides not to use the second hPCF, and the first AMF decides not to use the second vPCF, ie the first AMF selected vPCF (which may be referred to as the first vPCF) and the second AMF used
  • the two vPCFs are different vPCFs, and the hPCF selected by the first AMF (which may be referred to as the first hPCF) and the hPCF used by the second AMF are not the same hPCF. If the first AMF decides to use the first vPCF and the first hPCF, then the following steps 513-516 are performed.
  • Step 509-step 510 with the steps 406-408 of the embodiment shown in FIG. 4, reference may be made to the foregoing description.
  • step 511 the second vPCF determines that the timer expires.
  • the first AMF does not select the second vPCF (the first AMF and the second vPCF are located in different VPLMNs, the first AMF does not select the second vPCF), so the second vPCF does not receive the request for the update from the first AMF.
  • the message of the information associated with the second policy, and thus the timer on the second vPCF will time out.
  • Step 512 with the step 411 shown in FIG. 4, reference may be made to the foregoing description.
  • the second hPCF may use the information related to the first policy stored in the second hPCF according to the update request message.
  • the information of the second vPCF is updated to the information of the first vPCF.
  • the second hPCF does not need to delete the information of the second vPCF in the information associated with the first policy, and does not need to re-establish the policy association with the first vPCF, but directly directly compares the second vPCF in the information associated with the first policy.
  • the information is updated to the information of the first vPCF, so that the new vPCF does not need to create a new resource on the second hPCF, and the second hPCF does not need to interact with the UDR to obtain the subscription data of the terminal and the policy previously formulated for the terminal. Therefore, the resource overhead of policy control can be saved.
  • step 513 the second vPCF determines that the timer expires.
  • the first AMF does not select the second vPCF (the first AMF and the second vPCF are located in different VPLMNs, the first AMF does not select the second vPCF), so the second vPCF does not receive the request for the update from the first AMF.
  • the message of the information associated with the second policy, and thus the timer on the second vPCF will time out.
  • Step 514 The second vPCF deletes the information associated with the second policy.
  • step 515 the second hPCF determines that the timer expires.
  • the second hPCF Since the first AMF does not select the second hPCF, the second hPCF does not receive a message from the first vPCF for requesting to update the information associated with the first policy, and thus the timer on the second hPCF will time out.
  • Step 516 The second hPCF deletes the information associated with the first policy.
  • the first AMF determines to use a different vPCF than the second AMF
  • the first vPCF does not send an update request message to the second hPCF.
  • the second hPCF deletes the information associated with the first policy. The information related to the second policy that is no longer used by the second vPCF is deleted, and the information associated with the first policy that is no longer used by the second hPCF is deleted, thereby helping to avoid the error of the second vPCF and the second hPCF. decision making.
  • FIG. 5 only shows some steps in the AMF reselection process.
  • the method for controlling a policy provided by the present application is applicable to the network architecture and application scenario shown in FIG. 1(c).
  • the method includes the following steps:
  • Step 601 The first AMF sends a request message to the second AMF.
  • the second AMF can receive the request message.
  • the request message can be used to request the context of the acquiring terminal.
  • step 601 is an optional step, and the step may not be performed in an actual application.
  • Step 602 The second AMF sends the context of the terminal to the first AMF.
  • the first AMF can receive the context of the terminal.
  • the information of the first policy association (Policy Association) is included in the context of the terminal that is sent by the second AMF to the first AMF, and the information associated with the first policy includes the identifier of the second hPCF.
  • the second hPCF is a PCF associated with the second AMF establishment policy.
  • the second AMF since the first AMF and the second AMF are in different PLMNs, and the second AMF is in the home location, the second AMF carries the identifier of the second hPCF in the information associated with the first policy and sends the information to the first An AMF.
  • step 603 the second AMF starts a timer.
  • This timer can also be referred to as a first timer.
  • the timer corresponds to a set duration.
  • the specific value of the duration can be set according to actual needs or obtained from other network elements, such as UDM network elements.
  • the duration generally ensures that under normal circumstances, the second AMF can receive the notification message of the second hPCF before timing out.
  • the first notification message is used to notify the second AMF that the second hPCF has received a message for requesting to update the first policy association.
  • the timer will time out.
  • the first AMF after receiving the context of the terminal that is sent by the second AMF, the first AMF obtains the information associated with the first policy, and the information associated with the first policy includes the identifier of the second hPCF, the second hPCF. This is the hPCF used by the second AMF.
  • the first AMF decides whether to use the second hPCF.
  • the first AMF decides to use the second hPCF, that is, the first AMF selects one vPCF (which may be referred to as the first vPCF), and the hPCF selected by the first AMF is the same hPCF as the hPCF used by the second AMF. , that is, the second hPCF. If the first AMF decides to use the first vPCF and the second hPCF, then the following steps 604-608 are performed.
  • the first AMF decides not to use the second hPCF, ie the first AMF selects one vPCF (which may be referred to as the first vPCF), and the first AMF selects the hPCF (which may be referred to as the first hPCF) and the first The hPCF used by the two AMFs is not the same hPCF. If the first AMF decides to use the first vPCF and the first hPCF, then the following steps 604-605 are performed, and steps 609-611 are performed.
  • Step 604 The first AMF sends a setup request message to the first vPCF.
  • the first vPCF can receive the setup request message.
  • the setup request message includes update information and information of the first AMF.
  • the update information includes an identifier of the second hPCF, and the update information is used to instruct the first vPCF to send an update request message to the second hPCF.
  • the setup request message is used to request the first vPCF to create a third policy association for the terminal according to the information of the first AMF.
  • the information of the first policy of the context of the terminal in the foregoing step 602 includes the information of the first resource, where the information of the first resource includes the identifier of the second hPCF and the identifier of the first resource, where the first resource is the first policy.
  • the update information includes the information of the first resource, and the update information is used to indicate that the first vPCF sends the update request message to the second hPCF, where the information of the first resource in the update information is used to indicate the first vPCF direction.
  • the second hPCF sends an update request message.
  • the first AMF receives the information of the first resource from the second AMF, and the information of the first resource is a whole, so the first AMF is unable to obtain the information included in the information of the first resource.
  • the update information carried in the setup request message sent by the first AMF to the first vPCF specifically includes the information of the first resource.
  • the first vPCF may send an update request message to the second hPCF according to the information of the first resource in the update information.
  • the information of the first policy of the context of the terminal in the foregoing step 602 includes the identifier of the first resource and the identifier of the second hPCF, where the identifier of the first resource is used to identify the first resource.
  • the update information includes an identifier of the first resource and an identifier of the second hPCF, where the update information is used to indicate that the first vPCF sends the update request message to the second hPCF, specifically: the identifier of the first resource and the identifier of the second hPCF in the update information.
  • means for instructing the first vPCF to send an update request message to the second hPCF means for instructing the first vPCF to send an update request message to the second hPCF.
  • the first AMF receives the identifier of the first resource and the identifier of the second hPCF from the second AMF, that is, the first AMF may obtain the identifier of the first resource and the identifier of the second hPCF, respectively.
  • the update information carried in the setup request message sent by the first AMF to the first vPCF specifically includes the identifier of the first resource and the identifier of the second hPCF. Therefore, the first vPCF may send an update request message to the second hPCF according to the identifier of the first resource and the identifier of the second hPCF in the update information.
  • the information of the first policy of the context of the terminal in the foregoing step 602 includes the identifier of the second hPCF
  • the update information includes the indication information and the identifier of the second hPCF
  • the update information is used to instruct the first vPCF to send the update to the second hPCF.
  • the request message is: the indication information in the update information and the identifier of the second hPCF are used to instruct the first vPCF to send an update request message to the second hPCF.
  • the first AMF receives the identifier of the second hPCF from the second AMF.
  • the update information carried in the setup request message sent by the first AMF to the first vPCF specifically includes the indication information and the identifier of the second hPCF. Therefore, the first vPCF may send an update request message to the second hPCF according to the indication information in the update information and the identifier of the second hPCF.
  • the indication information may be, for example, 1-bit information or the like.
  • Step 605 The first vPCF saves the received information of the first AMF, and creates a third policy association for the terminal.
  • Step 606 The first vPCF sends an update request message to the second hPCF according to the update information, and correspondingly, the second hPCF may receive the update request message.
  • the update request message includes information of the first vPCF, and the update request message is used to request the second hPCF to update the information of the second AMF in the information associated with the first policy to the information of the first vPCF.
  • the information of the first vPCF herein may include an identifier of the first vPCF, a notification address used by the first vPCF to receive the policy update, a subscription when the terminal accesses through the first AMF, and access information of the terminal.
  • the information of the second AMF herein may include an identifier of the second AMF, a notification address used by the second AMF to receive the policy update, a subscription when the UE accesses through the second AMF, and access information of the terminal.
  • Step 607 The second hPCF updates the information associated with the first policy.
  • the second hPCF updates the information of the second AMF in the information associated with the first policy to the information of the first vPCF according to the received update request message.
  • the update request message may further include an indication of the AMF change.
  • the indication of the AMF change is used to trigger the second hPCF to update the information associated with the first policy. That is, the second hPCF receives the update request message, and updates the information of the second vPCF in the information associated with the first policy to the information of the first vPCF according to the indication of the AMF change in the update request message.
  • the second hPCF updates the information associated with the first policy may include at least one of the following four operations, that is, may include one of the operations, or may include two of the operations, or may include the Three operations, or can include four of them:
  • the information related to the first policy that is acquired by the first AMF may further include the identifier of the first resource, where the first resource is the resource corresponding to the first policy created by the second hPCF. .
  • the identifier of the first resource may also be carried in the setup request message of the foregoing step 604.
  • the update request message in the above step 606 may carry the identifier of the first resource.
  • the specific method for the second hPCF to update the information associated with the first policy is: the second hPCF, according to the identifier of the first resource, the second AMF of the information associated with the first policy in the first resource.
  • the information is updated to the information of the first vPCF.
  • the information related to the first policy that is acquired by the first AMF may include the information of the first resource, where the information of the first resource includes the identifier of the first resource and the identifier of the second hPCF.
  • the information of the first resource is a whole, and the first AMF cannot separately obtain the identifier of the first resource or the identifier of the first hPCF from the information of the first resource, but the information of the first resource includes the first resource.
  • the first resource is a resource corresponding to the first policy created by the second hPCF.
  • the update request message of the foregoing step 406 may further carry the resource of the first resource, and the update request message is specifically used to request that the information of the second AMF in the information associated with the first policy in the first resource be updated to the first vPCF information.
  • the specific method for the second hPCF to update the information associated with the first policy is: the second hPCF, according to the information of the first resource, the second AMF of the information associated with the first policy in the first resource. The information is updated to the information of the first vPCF.
  • the second hPCF may further update the policy previously formulated for the terminal according to the information associated with the updated policy. Further, after the second hPCF updates the policy formulated for the terminal, the updated policy may also be sent to the address of the second AMF for receiving the policy update.
  • Step 608 The second hPCF sends a notification message to the second AMF, and correspondingly, the second AMF can receive the notification message.
  • the notification message is used to notify the second AMF that the second hPCF has received a message for requesting to update the first policy association, or can be understood to be used to notify the second AMF that the second hPCF has received the above step 606. Update request message. Or it can be understood that the notification message is used to notify the second AMF that the first AMF selects the second hPCF.
  • the information may be associated with the first policy stored in the second hPCF according to the update request message.
  • the information of the second AMF is updated to the information of the first vPCF.
  • the second hPCF does not need to delete the information of the second AMF in the information associated with the first policy, and does not need to re-establish the policy association with the first vPCF, but directly directly compares the information of the second AMF in the information associated with the first policy.
  • the information is updated to the information of the first vPCF, so that the new vPCF does not need to create a new resource on the second hPCF, and the second hPCF does not need to interact with the UDR to obtain the subscription data of the terminal and the policy previously formulated for the terminal. Therefore, the resource overhead of policy control can be saved.
  • step 609 the second AMF determines that the timer expires.
  • the second AMF does not receive the first notification message sent by the second hPCF before the timer expires, and the first notification message is used to notify the second AMF: the second hPCF A message is received for requesting to update the first policy association. Therefore the timer will time out.
  • Step 610 The second AMF sends a delete request message to the second hPCF, and correspondingly, the second hPCF can receive the delete request message.
  • the delete request message is used to request the second hPCF to delete the first policy association. Specifically, the delete request message is used to request the second hPCF to delete the information associated with the first policy.
  • Step 611 The second hPCF deletes the information associated with the first policy.
  • the second hPCF may delete information associated with the first policy, for example, all information related to the first policy association may be deleted.
  • FIG. 6 only shows some steps in the AMF reselection process.
  • Another method for controlling a policy provided by the present application is also applicable to the network architecture and application scenario shown in FIG. 1(c).
  • the method includes the following steps:
  • Step 701 The first AMF sends a request message to the second AMF.
  • the second AMF can receive the request message.
  • the request message can be used to request the context of the acquiring terminal.
  • step 701 is an optional step, and the step may not be performed in an actual application.
  • Step 702 The second AMF sends the context of the terminal to the first AMF.
  • the first AMF can receive the context of the terminal.
  • the information of the first policy association (Policy Association) is included in the context of the terminal that is sent by the second AMF to the first AMF, and the information associated with the first policy includes the identifier of the second hPCF.
  • the second hPCF is a PCF that is associated with the second vPCF.
  • the second AMF since the first AMF and the second AMF are in different PLMNs, and the second AMF is in the home location, the second AMF carries the identifier of the second hPCF in the policy association information and sends the information to the first AMF. .
  • Step 703 The second AMF sends a delete request message to the second hPCF, and correspondingly, the second hPCF can receive the delete request message.
  • the delete request message may also be referred to as a third delete request message.
  • the delete request message is used to request to delete the first policy association. Specifically, the delete request message is used to request the second hPCF to delete the first policy association, including deleting all information related to the first policy association.
  • Step 704 the second hPCF starts a timer.
  • the second hPCF may not immediately delete the first policy association, but start a timer.
  • the second hPCF After receiving the deletion request message, the second hPCF starts a timer according to the deletion request message.
  • the deletion request message in the foregoing step 703 may further include a deletion indication, where the deletion indication is used to indicate that the second hPCF deletes the first message when the message for requesting to update the first policy association is not received. Policy association. That is, the second hPCF is instructed to delete the first policy association when the update request message is not received.
  • the second hPCF may start a timer according to the deletion indication in the deletion request message.
  • the deletion indication here is a conditional deletion indication, that is, for indicating the second hPCF: if the message for requesting to update the first policy association is not received, the first policy association is deleted.
  • the deletion request message of the foregoing step 703 may further include an indication of the AMF change, where the indication of the AMF change is used to notify the second hPCF that the AMF changes, or that the indication of the AMF change is used to indicate The delete request message is triggered by a change in the AMF.
  • the timer may be started according to the indication of the AMF change in the delete request message.
  • the first AMF after receiving the context of the terminal that is sent by the second AMF, the first AMF obtains the information associated with the first policy, and the information associated with the first policy includes the identifier of the second hPCF, the second hPCF. This is the hPCF used by the second AMF.
  • the first AMF decides whether to use the second hPCF.
  • the first AMF decides to use the second hPCF, ie the hPCF selected by the first AMF and the hPCF used by the second AMF are the same hPCF, ie the second hPCF. If the first AMF decides to use the second hPCF, then the following steps 707-708 are performed.
  • the first AMF decides not to use the second hPCF, i.e., the hPCF selected by the first AMF (which may be referred to as the first hPCF) and the hPCF used by the second AMF are not the same hPCF. If the first AMF decides not to be the first hPCF, then the following steps 709-710 are performed.
  • the information related to the first policy may be updated according to the update request message. Since the second hPCF does not need to delete the information associated with the first policy, and does not need to re-establish the policy association with the first vPCF, but directly according to the information of the first vPCF according to the information associated with the first policy, this does not need to be the first
  • the vPCF creates a new resource on the second hPCF, and the second hPCF does not need to interact with the UDR to obtain the subscription data of the terminal and the policy previously formulated for the terminal, thereby saving resource overhead of policy control.
  • step 709 the second hPCF determines that the timer expires.
  • the second hPCF Since the first AMF does not select the second hPCF, the second hPCF does not receive a message from the first AMF for requesting to update the first policy association, and thus the timer on the second hPCF will time out.
  • Step 710 The second hPCF deletes the information associated with the first policy.
  • the first AMF determines to use a different hPCF than the second AMF
  • the first vPCF does not send an update request message to the second hPCF.
  • the second hPCF deletes the information associated with the first policy that is no longer used in the second hPCF, thereby helping to avoid erroneous policy decisions for the second hPCF.
  • the policy control method shown in FIG. 2 to FIG. 5 will be specifically described below in conjunction with specific embodiments.
  • the first AMF, the second AMF, the first vPLMN, the second vPLMN, the first vPCF, the second vPCF, the first hPCF, and the second hPCF are respectively used by New AMF, Old AMF, vPLMN1, vPLMN2, New vPCF, Old vPCF, New hPCF, Old hPCF.
  • UE user equipment
  • FIG. 8 another method for controlling a policy provided by the present application is a specific implementation of the embodiment shown in FIG. 2 , and the embodiment shown in FIG. 8 combines the strategy shown in FIG. 2 .
  • Control methods and other processes for AMF reselection are located in vPLMN1, Old AMF and Old vPCF are located in vPLMN2, New hPCF and Old hPCF are located in hPLMN.
  • the method includes the following steps:
  • Step 1 The UE sends a registration request message to the (R) AN1, where the registration request message carries the identifier of the UE (such as a subscription permanent identifier (SUPI)).
  • the registration request message carries the identifier of the UE (such as a subscription permanent identifier (SUPI)).
  • (R) AN1 can receive the registration request message.
  • SUPI subscription permanent identifier
  • the identifier of the UE is also the identifier of the user.
  • (R) AN1 is an abbreviation for (radio) access network.
  • Step 2 (R) AN1 sends a registration request message to the Old AMF, where the registration request message carries the identifier of the UE.
  • the Old AMF can receive the registration request message.
  • Step 3 The Old AMF interacts with the UDM to register the AMF, obtain the user's subscription data, and notify the subscriber of the subscription data change.
  • Step 4 Old AMF selects Old vPCF and Old hPCF and sends a setup request message to Old vPCF.
  • the setup request message may be an Npcf_AMPolicyControl_Create Request message, which is used to request to create a policy association.
  • the establishment request message carries the identifier of the user, the identifier of the Old hPCF, and the identifier of the Old AMF.
  • the Old vPCF receives the setup request message.
  • Old AMF sends an HTTP POST to Old vPCF
  • the request URL1 is ⁇ apiRoot1 ⁇ /npcf-am-policy-control/v1/policies/.
  • the message body carries the identity of the user, the identity of the Old hPCF, and the identity of the Old AMF.
  • the message also carries the policy update notification address 1, specifically NotifyUrl1.
  • HTTP is an abbreviation of Policy and Charging Control.
  • a URL is an abbreviation for Uniform Resource Locator.
  • the URI is an abbreviation for Uniform Resource Identifier.
  • Step 5 The Old vPCF sends a setup request message to the Old hPCF, for example, an Npcf_AMPolicyControl_Create Request message, which is used to request to create a policy association message carrying the identifier of the user and the identifier of the Old vPCF.
  • the Old hPCF receives the setup request message.
  • Old vPCF sends an HTTP POST to Old hPCF
  • the request URL2 is ⁇ apiRoot2 ⁇ /npcf-am-policy-control/v1/policies/.
  • the message body carries the identity of the user and the identity of the Old vPCF.
  • the message also carries the policy update notification address 2, specifically NotifyUrl2.
  • Step 6 The Old hPCF creates a policy association corresponding to the UE between the Old vPCF and the Old hPCF (the policy association is called the first policy association), and formulates the UE policy for the user according to the user subscription, the network policy, and the related information of the access network. And Policy Control Request Trigger. Old hPCF saves the formulated UE policy to the UDR. The Old hPCF returns a response message to the Old vPCF, and the response message may be, for example, an Npcf_AMPolicyControl_Create Response message, where the response message carries a UE policy and a policy control request trigger. Since Old hPCF may not have user-related subscription information, Old hPCF can obtain user subscription after interacting with UDR.
  • the policy association is called the first policy association
  • Old hPCF creates a policy-associated resource, allocates a sub-resource identifier policyId2, and constructs a URI2 for the created resource, and the URI2 is to generate the requested URL2 as a parent resource and then splicing the sub-resource identifier.
  • URI2 is ⁇ apiRoot2 ⁇ /npcf-am-policy-control/v1/policies/policyId2.
  • the Old hPCF returns an HTTP Response message to the Old vPCF and carries the URI2 in the Location Header of the message.
  • the UE policy and policy control request trigger are carried in the message body.
  • Step 7 The Old vPCF creates a policy association corresponding to the UE between the Old AMF and the Old vPCF (this policy association is referred to as a second policy association).
  • Old vPCF develops policies related to access and mobility control for users based on network policies and access network related information.
  • the Old vPCF returns a response message to the Old AMF, and the response message may be, for example, an Npcf_AMPolicyControl_Create Response message, which carries related policies of UE policy, policy control request triggering, access, and mobility control.
  • Old vPCF creates a policy-associated resource, allocates a sub-resource identifier policyId1, and constructs a URI1 for the created resource, and the URI1 generates the requested URL1 as a parent resource (parent resource) and then splicing the sub-resource identifier.
  • URI1 is ⁇ apiRoot1 ⁇ /npcf-am-policy-control/v1/policies/policyId1.
  • Old vPCF returns an HTTP Response message to Old AMF and carries URI1 in the location header header of the message.
  • the message body carries related policies of UE policy, policy control request triggering, access and mobility control.
  • the Old vPCF also sends information (eg, URI2 or policyId2) of the resource associated with the policy associated with the UE created by the Old hPCF to the Old AMF.
  • the URI2 may be referred to as the information of the first resource, and the policyId2 may be referred to as the identifier of the first resource.
  • URI1 may be referred to as information of a second resource, and policyId1 may be referred to as an identifier of a second resource.
  • Step 8 The Old AMF returns a registration accept message to the UE, where the message carries the received policy. Correspondingly, the UE receives the registration accept message.
  • Step 9 The UE moves, and the UE sends a registration request message to the (R)AN2, where the registration request message carries a temporary identifier of the UE (such as a 5G Globally Unique Temporary Identifier (5G-GUTI)).
  • the registration request message carries a temporary identifier of the UE (such as a 5G Globally Unique Temporary Identifier (5G-GUTI)).
  • (R) AN2 receives the registration request message.
  • 5G-GUTI 5G Globally Unique Temporary Identifier
  • Step 10 (R) AN2 sends a registration request message to the New AMF, where the message carries the temporary identifier of the UE.
  • New AMF receives the registration request message.
  • Step 11 The New AMF sends a request message to the Old AMF according to the temporary identifier of the UE.
  • the request message may be, for example, a Namf_Communication_UEContextTransfer Request message, and the request message is used for the context of the UE, for example, obtaining the identifier of the user (such as SUPI) and mobility management ( Mobile management, MM) context.
  • Step 12 The Old AMF returns a response message to the New AMF, and the response message may be, for example, a Namf_Communication_UEContextTransfer Response message, where the response message carries the identity of the user and the MM context.
  • the New AMF receives the response message.
  • the Old AMF determines whether to carry the information of the Old hPCF identifier and the resource corresponding to the policy association of the UE created by the Old hPCF (ie, URI2 or policyId2) in the context according to the configured policy. Since the URI2 includes the identifier of the Old hPCF, if the URI2 is carried in the response message, the identifier of the Old hPCF may not be carried in the response message.
  • Step 13 The New AMF sends a registration completion notification message to the Old AMF, and the registration completion notification message may be a Namf_Communication_RegistrationCompleteNotify message, which is used to notify the Old AMF that the registration of the UE in the New AMF has been completed.
  • the Old AMF can receive the registration completion notification message.
  • Step 14 Old AMF starts the timer.
  • Step 15 The New AMF registers the New AMF with the UDM to obtain the user's subscription data and the notification of the subscription user subscription data change.
  • Step 16 The UDM sends a registration notification message to the Old AMF, which may be, for example, a Nudm_UECM_DeregistrationNotification Request message, and the Old AMF deletes the MM context of the UE.
  • the Old AMF returns a registration response message to the UDM, which may be, for example, a Nudm_UECM_DeregistrationNotification Response message.
  • Old AMF cancels the notification of the subscription subscription data modification, that is, the subscription of the user data change notification.
  • Step 17 If New AMF does not receive the Old hPCF identity (or resource information), or New AMF receives the Old hPCF identity (or resource information) but New AMF decides not to use Old hPCF, New AMF needs to select New vPCF and New hPCF. If New AMF receives the Old hPCF identity (or resource information) and New AMF decides to use Old hPCF, New AMF only needs to select New vPCF. The New AMF sends a setup request message to the New vPCF, which may be, for example, an Npcf_AMPolicyControl_Create Request message, which is used to request the creation of a policy association.
  • a setup request message to the New vPCF, which may be, for example, an Npcf_AMPolicyControl_Create Request message, which is used to request the creation of a policy association.
  • the setup request message carries the identifier of the user (such as SUPI), the identifier of the New AMF, and the policy update notification address 3 (specifically, NotifyUrl3). Further, if the New AMF uses the Old hPCF, the setup request message further includes an identifier of the Old hPCF (or information of the resource). If the New AMF does not use the Old hPCF, the setup request message further includes the identifier of the New hPCF. Correspondingly, the New vPCF receives the setup request message.
  • New AMF sends an HTTP POST to New vPCF, requesting URL3 as ⁇ apiRoot3 ⁇ /npcf-am-policy-control/v1/policies/.
  • the message body carries the user's identity, the New AMF identity, and the New hPCF identity (AMF does not use Old hPCF) or resource information (New AMF uses Old hPCF).
  • the message can also carry an indication of AMF change.
  • Step 18 If the New vPCF receives the identity of the New hPCF in step 12, it sends a setup request message to the New hPCF.
  • the setup request message may be, for example, an Npcf_AMPolicyControl_Create Request message, and the setup request message is used to request to create a policy association.
  • the message carries the identity of the user.
  • the New hPCF receives the setup request message.
  • New vPCF sends an HTTP POST to New hPCF, and the request URL4 is ⁇ apiRoot4 ⁇ /npcf-am-policy-control/v1/policies/.
  • the message body carries the user's identity, New vPCF identifier.
  • Step 19 The New hPCF creates a policy association corresponding to the UE between the New vPCF and the New hPCF (the policy association may be referred to as a fourth policy association).
  • New hPCF needs to interact with the UDR to obtain user subscriptions and UE policies that were developed before Old hPCF.
  • the new hPCF determines whether it needs to update the previously formulated UE policy and policy control request trigger (Policy Control Request Trigger) according to user subscription, network policy, and access network related information.
  • Policy Control Request Trigger Policy Control Request Trigger
  • the New hPCF returns a response message to the New vPCF, which may be, for example, an Npcf_AMPolicyControl_Create Response message, where the response message carries the updated UE policy and the policy control request trigger (if updated).
  • New vPCF receives the response message.
  • New hPCF creates a policy-associated resource, allocates a sub-resource identifier policyId4, and constructs a URI4 for the created resource, and the URI4 generates the requested URL4 as a parent resource and then splicing the sub-resource identifier.
  • ie URI4 is ⁇ apiRoot4 ⁇ /npcf-am-policy-control/v1/policies/policyId4.
  • New hPCF returns an HTTP Response message to New vPCF and carries URI4 in the location header header of the message. The updated UE policy and policy control request are triggered in the message body (if updated).
  • Step 20 If the New vPCF receives the resource information in the above step 12, the New vPCF sends an update request message to the Old hPCF, and the update request message may be, for example, an Npcf_AMPolicyControl_Update Request message, and the update request message is used to request an update policy association.
  • the update request message may be, for example, an Npcf_AMPolicyControl_Update Request message, and the update request message is used to request an update policy association.
  • New vPCF sends an HTTP POST to Old hPCF, and the request URL is ⁇ apiRoot2 ⁇ /npcf-am-policy-control/v1/policies/policyId2/update.
  • the message body carries the New vPCF identifier, and the policy update notification address 4 (specifically, NotifyUrl4).
  • Step 21 The Old hPCF is updated according to the resource corresponding to the URL (that is, the resource corresponding to ⁇ apiRoot2 ⁇ /npcf-am-policy-control/v1/policies/policyId2), including replacing the Old vPCF identifier with the New vPCF identifier.
  • the policy update notification address 3 is replaced with the policy update notification address 4 and the like.
  • the Old hPCF then sends an update response message to the New vPCF.
  • Step 22 The Old hPCF sends a notification message to the Old vPCF, which may be, for example, an Npcf_AMPolicyControl_UpdateNotify Request message, which is used to notify Old vPCF that New AMF uses Old hPCF.
  • a notification message to the Old vPCF, which may be, for example, an Npcf_AMPolicyControl_UpdateNotify Request message, which is used to notify Old vPCF that New AMF uses Old hPCF.
  • Old hPCF sends an HTTP POST to Old vPCF, and the request URL is ⁇ NotifyURL2 ⁇ , and carries an indication of AMF change in the message body.
  • Step 23 The Old vPCF sends a notification message to the Old AMF, which may be, for example, an Npcf_AMPolicyControl_UpdateNotify Request message, which is used to notify the New AMF that the Old hPCF is used.
  • the specific implementation is as follows: Old hPCF sends an HTTP POST to Old vPCF, and the request URL is ⁇ NotifyURL1 ⁇ , and carries an indication of AMF change in the message body.
  • Step 24 The Old AMF stops the timer started in step 14. Old AMF sends a response message to Old vPCF. Correspondingly, Old vPCF receives the response message.
  • Step 25 Old vPCF sends a response message to Old hPCF.
  • Step 26 The Old AMF sends a delete request message to the Old vPCF, where the delete request message may be an Npcf_AMPolicyControl_Delete message, and the delete request message is used to request to delete the policy association (ie, request to delete the second policy association in the Old vPCF), and the message may also carry Indicates information indicating that only the second policy association on the Old vPCF needs to be deleted.
  • the delete request message may be an Npcf_AMPolicyControl_Delete message
  • the delete request message is used to request to delete the policy association (ie, request to delete the second policy association in the Old vPCF), and the message may also carry Indicates information indicating that only the second policy association on the Old vPCF needs to be deleted.
  • Old AMF sends an HTTP Delete message to Old vPCF
  • the request URL is ⁇ apiRoot1 ⁇ /npcf-am-policy-control/v1/policies/policyId1.
  • Step 27 The Old vPCF deletes the policy association and sends a response message to the Old AMF.
  • Step 28 The New vPCF creates a policy association corresponding to the UE between the New AMF and the New vPCF (the policy tube association may be referred to as a third policy association).
  • the New vPCF determines whether it is necessary to update the relevant policies for the user to establish access and mobility control according to the network policy and the related information of the access network.
  • the New vPCF sends a response message to the New AMF, which may be, for example, an Npcf_AMPolicyControl_Create Response message carrying a policy related to the UE policy, policy control request triggering, and access and mobility control (if updated).
  • New vPCF creates a policy-associated resource, allocates a sub-resource identifier policyId3, and constructs a URI3 for the created resource, and the URI3 generates the requested URL3 as a parent resource and then splicing the sub-resource identifier.
  • ie URI3 is ⁇ apiRoot3 ⁇ /npcf-am-policy-control/v1/policies/policyId3.
  • New vPCF returns an HTTP Response message to New AMF and carries URI3 in the location header header of the message.
  • a policy (if updated) that carries UE policy, policy control request triggering, access and mobility control in the message body.
  • Step 29 The New AMF returns a registration accept message to the UE, and the registration accept message carries the policy received by the New AMF. Correspondingly, the UE receives the registration accept message.
  • Step 30 If the New AMF selects New hPCF, the Old AMF does not receive the notification message of step 23, and the timer started in step 14 will time out.
  • Step 31 After the timer expires, the Old AMF sends a delete request message to the Old vPCF.
  • the delete request message may be, for example, an Npcf_AMPolicyControl_Delete Request message, and the delete request message is used to request that the Old AMF is associated with the policy created by the Old vPCF.
  • Old vPCF receives the delete request message.
  • Old AMF sends an HTTP Delete message to Old vPCF
  • the request URL is ⁇ apiRoot1 ⁇ /npcf-am-policy-control/v1/policies/policyId1.
  • Step 32 The Old vPCF sends a delete request message to the Old hPCF, and the delete request message may be, for example, an Npcf_AMPolicyControl_Delete Request message, and the delete request message is used to request to delete the policy association created by the Old vPCF and the Old hPCF.
  • the delete request message may be, for example, an Npcf_AMPolicyControl_Delete Request message, and the delete request message is used to request to delete the policy association created by the Old vPCF and the Old hPCF.
  • Old vPCF sends an HTTP Delete message to Old hPCF, and the request URL is ⁇ apiRoot2 ⁇ /npcf-am-policy-control/v1/policies/policyId2.
  • Step 33 After deleting the corresponding policy association (ie, resource), the Old hPCF sends a delete response message to the Old vPCF. Correspondingly, Old vPCF receives the delete response message. Specifically, the Old hPCF deletes the information associated with the first policy.
  • Step 34 After deleting the corresponding policy association (ie, resource), the Old vPCF sends a delete response message to the Old AMF. Correspondingly, Old AMF receives the delete response message. Specifically, the Old vPCF deletes the information associated with the second policy.
  • FIG. 9 another method for controlling a policy provided by the present application is a specific implementation of the embodiment shown in FIG. 3 , and the embodiment shown in FIG. 9 combines the strategy shown in FIG. 3 .
  • Control methods and other processes for AMF reselection are located in vPLMN1, Old AMF and Old vPCF are located in vPLMN2, New hPCF and Old hPCF are located in hPLMN.
  • the method includes the following steps:
  • Steps 1 - 13 are the same as steps 1 - 13 of the embodiment shown in FIG.
  • Steps 14 - 18 are the same as steps 15 - 19 of the embodiment shown in FIG.
  • Step 19 If the New vPCF receives the resource information, the New vPCF sends an update request message to the Old hPCF, and the update request message may be an Npcf_AMPolicyControl_Update Request message, and the update request message is used to request an update policy association.
  • the Old hPCF receives the update request message.
  • New vPCF sends an HTTP POST to Old hPCF, and the request URL is ⁇ apiRoot2 ⁇ /npcf-am-policy-control/v1/policies/policyId2/update.
  • the message body carries the identifier of New vPCF, and the policy update notification address 4 (specifically, NotifyUrl4).
  • Step 20 The Old hPCF is updated according to the resource corresponding to the URL (that is, the resource corresponding to ⁇ apiRoot2 ⁇ /npcf-am-policy-control/v1/policies/policyId2), including replacing the Old vPCF identifier with the New vPCF identifier.
  • the policy update notification address 3 is updated to the policy update notification address 4 and the like.
  • Steps 21 - 22 are the same as steps 28 - 29 of the embodiment shown in FIG.
  • Step 23 The Old AMF sends a delete request message to the Old vPCF, and the delete request message may be, for example, an Npcf_AMPolicyControl_Delete Request message, and the delete request message is used to request that if the Old vPCF does not receive the update request message, the policy association is deleted.
  • the delete request message may be, for example, an Npcf_AMPolicyControl_Delete Request message, and the delete request message is used to request that if the Old vPCF does not receive the update request message, the policy association is deleted.
  • the order of receipt is not fixed. If the update request message has been received when step 23 is received (in this embodiment, Old vPCF will not receive because Old AMF did not send the identity of Old vPCF to New AMF), then Old vPCF ignores the request message. , that is, the operation associated with the delete policy is not performed. If Old vPCF has not received the update request message at step 23, then Old vPCF will wait for a period of time according to the configuration (ie, start the timer). If the update request message is received before the timer expires, Old vPCF ignores the deletion. Request message, that is, the operation associated with the delete policy is not performed. If the update request message has not been received when the timer expires, the policy association is deleted, and specifically, the information associated with the second policy is deleted. (In this embodiment, the timer always times out).
  • Old AMF sends an HTTP Delete message to Old vPCF
  • the request URL is ⁇ apiRoot1 ⁇ /npcf-am-policy-control/v1/policies/policyId1.
  • Step 24 The Old vPCF sends a delete request message to the Old hPCF, and the delete request message may be, for example, an Npcf_AMPolicyControl_Delete Request message, and the delete request message is used to request that if the Old hPCF does not receive the update request message, the policy association is deleted.
  • the delete request message may be, for example, an Npcf_AMPolicyControl_Delete Request message, and the delete request message is used to request that if the Old hPCF does not receive the update request message, the policy association is deleted.
  • the order of receipt is not fixed. If the update request message has been received when step 24 is received, the Old hPCF ignores the request message, that is, does not perform the operation associated with the delete policy. If Old hPCF has not received the update request message at step 24, Old hPCF will wait for a period of time according to the configuration (ie, start the timer). If the update request message is received before the timer expires, Old PCF ignores the deletion. Request message, that is, the operation associated with the delete policy is not performed. If the update request message has not been received when the timer expires, the policy association is deleted, and specifically, the information associated with the first policy is deleted.
  • the deletion request message may carry a conditional deletion indication, and then the timer is started only when the conditional deletion indication is received.
  • the conditional deletion indication may be a specific indication or an AMF reselection, and the specific implementation is: Old AMF sends an HTTP Delete message to the Old PCF, and the request URL is ⁇ apiRoot2 ⁇ /npcf-am-policy-control/v1/policies/policyId2 .
  • Step 25 Old hPCF sends a delete response message to Old vPCF.
  • Old vPCF receives the delete response message.
  • Step 26 Old vPCF sends a delete response message to Old AMF.
  • the corresponding Old AMF receives the delete response message.
  • FIG. 10 another method for controlling a policy provided by the present application is a specific implementation of the embodiment shown in FIG. 4.
  • the embodiment shown in FIG. 10 combines the strategy shown in FIG. Control methods and other processes for AMF reselection. Among them, New AMF, New vPCF, Old AMF and Old vPCF are located in the same vPLMN, New hPCF and Old hPCF are located in hPLMN.
  • the method includes the following steps:
  • Step 1 - Step 11 Steps 1 - 11 of the embodiment shown in Figure 8.
  • Step 12 The Old AMF returns a return response message to the New AMF, which may be, for example, a Namf_Communication_UEContextTransfer Response, which carries the identity of the user and the MM context.
  • New AMF receives the response message.
  • the Old AMF determines whether to carry the identity of the Old vPCF in the context, the identity of the Old hPCF, the resource information corresponding to the policy association of the UE created by the Old vPCF (ie, URI1 or policyId1) and the policy association of the UE created by the Old hPCF. Resource information (ie URI2 or policyId2). Since the URI2 includes the identifier of the Old hPCF, if the URI2 is carried in the response message, the identifier of the Old hPCF may not be carried in the response message.
  • Step 13 - Step 16 Same as Step 13 - Step 16 of the embodiment shown in FIG.
  • Step 17 If New AMF does not receive the Old vPCF logo and Old hPCF logo, or New AMF receives the Old vPCF logo and Old hPCF logo but New AMF decides not to use Old vPCF and Old hPCF, then New AMF selects New vPCF and New hPCF.
  • the New AMF sends a setup request message to the New vPCF, which may be, for example, an Npcf_AMPolicyControl_Create Request message, which is used to request the creation of a policy association.
  • the setup request message carries a user identifier (such as SUPI), an identifier of New AMF, and an identifier of New hPCF.
  • New AMF sends an HTTP POST to New vPCF, requesting URL3 as ⁇ apiRoot3 ⁇ /npcf-am-policy-control/v1/policies/.
  • the message body carries the identity of the user, the identity of the New AMF, and the identity of the New hPCF.
  • Step 18 - Step 19 Steps 18 - 19 of the embodiment shown in Figure 8.
  • Step 20 Same as step 28 of the embodiment shown in FIG.
  • Step 21 If the New AMF uses Old vPCF and Old hPCF, the New AMF sends an Update Request message to the Old vPCF, which may be, for example, an Npcf_AMPolicyControl_Update Request message, and the Update Request message is used to request an update policy association.
  • the update request message carries the identifier of the New AMF, the policy update notification address 3, and the resource information corresponding to the resource associated with the policy of the UE created by the hPCF (optional).
  • the Old vPCF receives the update request message.
  • New AMF sends an HTTP POST to Old vPCF
  • the request URL is ⁇ apiRoot1 ⁇ /npcf-am-policy-control/v1/policies/policyId1/Update, requesting the resource corresponding to the URL (ie ⁇ apiRoot1 ⁇ /npcf-
  • the resource corresponding to the am-policy-control/v1/policies/policyId1 is modified, that is, the message body carries the New AMF identifier and the resource information of the Old hPCF.
  • Step 22 The Old vPCF sends an Update Request message to the Old hPCF, which may be, for example, an Npcf_AMPolicyControl_Update Request message, and the Update Request message is used to request an update policy association.
  • the Old hPCF receives the update request message.
  • Old vPCF sends an HTTP POST to hPCF, and the request URL is ⁇ apiRoot2 ⁇ /npcf-am-policy-control/v1/policies/policyId2/Update.
  • Step 23 After the Old hPCF updates the policy association (ie, updates the resource), it sends an update response message to the Old vPCF. Correspondingly, Old vPCF receives an update response message. Specifically, the Old hPCF updates the information associated with the first policy.
  • Step 24 After the Old vPCF updates the policy association (ie, updates the resource), replaces the identifier of the New AMF with the identifier of the Old AMF, replaces the policy update notification address 3 with the policy update address 1, and then sends an update response message to the New AMF.
  • New AMF receives an update response message.
  • the Old vPCF updates the information associated with the second policy.
  • Step 25 The Old vPCF sends a notification message to the Old AMF, which may be, for example, an Npcf_AMPolicyControl_UpdateNotify Request message, which is used to notify that the policy association has been updated.
  • the specific implementation is as follows: Old vPCF sends an HTTP POST message to Old AMF, and the request URL is ⁇ NotifyUri1 ⁇ .
  • Step 26 Old AMF stops the timer and sends a response message to Old vPCF.
  • Step 27 The New AMF returns a registration accept message to the UE, and the registration accept message carries the policy received by the New AMF. Correspondingly, the UE receives the registration accept message.
  • Step 28 The timer expires.
  • Step 29 The Old AMF sends a delete request message to the Old vPCF, which may be, for example, an Npcf_AMPolicyControl_Delete Request message.
  • Old vPCF receives the delete request message.
  • the delete request message is used to request to delete the second policy association.
  • Step 30 The Old vPCF sends a delete request message to the Old hPCF, and the delete request message may be, for example, Npcf_AMPolicyControl_Delete Request.
  • the delete request message may be, for example, Npcf_AMPolicyControl_Delete Request.
  • Old hPCF receives the delete request message.
  • the delete request message is used to request to delete the first policy association.
  • Step 31 The Old hPCF deletes the information associated with the first policy and sends a delete response message to the Old vPCF. Correspondingly, Old vPCF receives the delete response message.
  • Step 32 The Old vPCF deletes the information associated with the policy and sends a delete response message to the Old AMF.
  • Old AMF receives the delete response message.
  • FIG. 11 another method for controlling a policy provided by the present application is a specific implementation of the embodiment shown in FIG. 5 , and the embodiment shown in FIG. 11 combines the strategy shown in FIG. 5 .
  • Control methods and other processes for AMF reselection are located in the same vPLMN, New hPCF and Old hPCF are located in hPLMN.
  • the method includes the following steps:
  • Step 1 - Step 13 Steps 1 - 13 of the embodiment shown in Figure 10.
  • Steps 14 - 23 are the same as steps 15 - 24 of the embodiment shown in FIG.
  • Step 24 The New AMF returns a registration accept message to the UE, and the registration accept message carries the policy received by the New AMF. Correspondingly, the UE receives the registration accept message.
  • Step 25 The Old AMF sends a delete request message to the Old vPCF, and the delete request message may be, for example, an Npcf_AMPolicyControl_Delete Request message, and the delete request message is used to request that if the Old vPCF does not receive the update request message, the policy association is deleted.
  • Old vPCF receives the delete request message.
  • the order of receipt is not fixed. If the Old vPCF has received the update request message when performing step 25, the Old vPCF ignores the request message, that is, does not perform the delete policy association operation. If Old vPCF has not received the update request message when performing step 25, Old vPCF will wait for a period of time according to the configuration (ie, start the timer). If the update request message is received before the timer expires, Old vPCF ignores the message. Request message, that is, the operation associated with the delete policy is not performed. If the update request message has not been received when the timer expires, the policy association is deleted.
  • the message carries a conditional deletion indication, and then the timer is started only when the indication is received.
  • the specific implementation is as follows: Old AMF sends an HTTP Delete message to Old vPCF, and the request URL is ⁇ apiRoot1 ⁇ /npcf-am-policy-control/v1/policies/policyId1.
  • Step 26 The Old vPCF sends a delete request message to the Old hPCF, and the delete request message may be, for example, an Npcf_AMPolicyControl_Delete Request message, and the delete request message is used to request that the policy policy association is deleted if the Old hPCF does not receive the update request message.
  • the delete request message may be, for example, an Npcf_AMPolicyControl_Delete Request message, and the delete request message is used to request that the policy policy association is deleted if the Old hPCF does not receive the update request message.
  • the order of receipt is not fixed. If the Old hPCF has received the update request message when performing step 26, the Old hPCF ignores the delete request message, that is, the operation associated with the delete policy is not performed. If Old hPCF has not received the update request message when step 26 is executed, Old hPCF will wait for a period of time according to the configuration (ie, start the timer). If the update request message is received before the timer expires, Old hPCF ignores the deletion. Request message, that is, the operation associated with the delete policy is not performed. If the update request message has not been received when the timer expires, the first policy association is deleted.
  • the deletion request message may also carry the conditional deletion indication, and the timer is started only when the conditional deletion indication is received.
  • the condition deletion indication may be a specific indication or indication information indicating AMF reselection, and the specific implementation is: Old AMF sends an HTTP Delete message to the Old PCF, and the request URL is ⁇ apiRoot2 ⁇ /npcf-am-policy-control/v1. /policies/policyId2.
  • Step 27 After deleting the information associated with the first policy, the Old hPCF sends a delete response message to the Old vPCF. Correspondingly, Old vPCF receives the delete response message.
  • Step 28 The Old vPCF sends a delete response message to the Old AMF after deleting the information associated with the second policy.
  • the Old AMF receives the delete response message.
  • FIG. 12 a schematic diagram of a device provided by the present application, which may be a mobility management network element, a policy control network element, or a chip, may perform the method of any of the foregoing embodiments.
  • the device is a policy control network element or chip
  • the device 1200 can be used to perform the steps shown in FIG. 2 to FIG. 11 by the first vPCF (or New vPCF), or the second vPCF (or Old vPCF), Or the operation performed by the second hPCF (or Old hPCF).
  • the device 1200 can be used to perform the operations shown in Figures 2-11 in the embodiment by the first AMF (or New AMF), or the second AMF (or Old AMF). The action performed.
  • the apparatus 1200 includes at least one processor 1201, a communication line 1202, a memory 1203, and at least one communication interface 1204.
  • the processor 1201 may be a general central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated systems for controlling the execution of the program of the present application. Circuit.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • Communication line 1202 can include a path for communicating information between the components described above.
  • Communication interface 1204 using any type of transceiver, for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), Wired access network, etc.
  • RAN radio access network
  • WLAN wireless local area networks
  • Wired access network etc.
  • the memory 1203 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type that can store information and instructions.
  • the dynamic storage device may also be an electrically EEPROM programmable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage.
  • EEPROM electrically EEPROM programmable programmable read-only memory
  • CD-ROM compact disc read-only memory
  • Optical disc storage including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.
  • magnetic disk storage media or other magnetic storage devices or capable of carrying or storing desired program code in the form of instructions or data structures and capable of Any other medium accessed by a computer, but is not limited thereto.
  • the memory may be stand-alone and connected to the processor via communication line 1202. The memory can also be integrated with the processor.
  • the memory 1203 is configured to store computer execution instructions for executing the solution of the present application, and is controlled by the processor 1201 for execution.
  • the processor 1201 is configured to execute the computer execution instructions stored in the memory 1203, thereby implementing the policy control method provided by the foregoing embodiment of the present application.
  • the computer-executed instructions in the embodiment of the present application may also be referred to as an application code, which is not specifically limited in this embodiment of the present application.
  • the processor 1201 may include one or more CPUs, such as CPU0 and CPU1 in FIG.
  • apparatus 1200 can include multiple processors, such as processor 1201 and processor 12012 in FIG. Each of these processors can be a single-CPU processor or a multi-core processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data, such as computer program instructions.
  • the device shown in FIG. 12 is a chip, for example, it may be a chip of the first mobility management network element, or a chip of the second mobility management network element, or a policy control network element (such as the first vPCF or the second vPCF). Or a second hPCF) chip, the chip includes a processor 1201 (which may also include a processor 12012), a communication line 1202, a memory 1203, and a communication interface 1204.
  • communication interface 1204 can be an input interface, a pin or a circuit, or the like.
  • the memory 1203 may be a register, a cache, or the like.
  • Processor 1201 and processor 12012 may be a general purpose CPU, microprocessor, ASIC, or one or more integrated circuits for controlling program execution of the policy control method of any of the above embodiments.
  • the present application may divide a functional module into a device according to the above method example.
  • each functional module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the present application is schematic, and is only a logical function division, and may be further divided in actual implementation.
  • FIG. 13 is a schematic diagram of a device, which may be the first mobility management network element involved in the foregoing embodiment, or the above embodiment.
  • the second home policy control network element involved in the foregoing embodiment is either a chip in the first mobility management network element, or a chip in the second mobility management network element, or is a first visited policy control.
  • the apparatus 1300 includes a receiving unit 1301, a transmitting unit 1302, and a processing unit 1303.
  • the device 1300 when the device 1300 is the first mobility management network element of the foregoing embodiment or the chip of the first mobility management network element, in an application scenario:
  • the receiving unit is configured to receive a context of the terminal from the second mobility management network element, where the context of the terminal includes information associated with the second policy, and the information associated with the second policy includes a second visited policy control network
  • the second policy association is configured by the second visited policy control network element for the terminal;
  • the processing unit is configured to select the second visited location policy control network element;
  • the sending unit And sending, in the case that the processing unit selects the second visited policy control network element, an update request message to the second visited policy control network element, where the update request message includes the first mobile Information for managing the network element, the update request message is used to request the second visited policy control network element to update the information of the second mobility management network element in the information associated with the second policy to the first Information of a mobility management network element; wherein the first mobility management network element, the second mobility management network element, and the second visited location policy control network element are located in the same visit Public Land Mobile Network vPLMN.
  • the information related to the second policy includes an identifier of the second visited policy control network element, where the information related to the second policy includes information about the second resource, where the second resource is The information includes the identifier of the second visited policy control network element and the identifier of the second resource, where the second resource is a resource corresponding to the second policy association, and the update request message is specifically used to request
  • the information of the second mobility management network element in the information related to the second policy in the second resource is updated to the information of the first mobility management network element; or
  • the information related to the second policy that is included in the context of the terminal further includes an identifier of the second resource, where the update request message further includes an identifier of the second resource, where the update request message is specifically used to request And updating information of the second mobility management network element in the information related to the second policy in the second resource to information of the first mobility management network element.
  • the receiving unit is configured to receive a context of a terminal from a second mobility management network element, where the context of the terminal includes information associated with the first policy, where the information associated with the first policy includes
  • the second homepage policy controls the identifier of the network element, where the first policy association is created by the second homepage policy control network element
  • the processing unit is configured to select the first visited location policy control network element.
  • the sending unit is configured to send, when the processing unit selects the first visited policy control network element, a setup request message to the first visited policy control network element, where the setup request message includes update information.
  • the information of the first mobility management network element, where the setup request message is used to request the first visited policy control network element to create a third for the terminal according to the information of the first mobility management network element.
  • the update information includes an identifier of the second home policy control network element, where the update information is used to indicate that the first visited policy control network element is located
  • the second homepage policy control network element sends an update request message, where the first mobility management network element and the first visited policy control network element are located in the first visited local public mobile network vPLMN,
  • the second mobility management network element is located in the second vPLMN or the homelanding public land mobile network hPLMN
  • the second home policy control network element is located in the hPLMN.
  • the information related to the first policy includes an identifier of the second home policy control network element, where the information related to the policy includes information of the first resource, and the information of the first resource includes:
  • the second attribution policy controls an identifier of the network element and an identifier of the first resource, where the first resource is a resource corresponding to the first policy association, and the update information includes the second attribution policy
  • the control network element is specifically configured to: the update information includes the information of the first resource, where the update information is used to indicate that the first visited policy control network element controls the network element to the second home location policy And sending the update request message, where the information of the first resource in the update information is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element; or,
  • the information associated with the first policy further includes an identifier of the first resource
  • the update information further includes an identifier of the first resource, where the update information is used to indicate that the first visited policy control network element Sending an update request message to the second home policy control network element, where the identifier of the second home policy control network element and the identifier of the first resource in the update information are used to indicate the The first visited policy control network element sends an update request message to the second home policy control network element; or
  • the update information further includes indication information, where the update information is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element, specifically: the update information
  • the identifier of the second homepage policy control network element and the indication information are used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element.
  • the receiving unit is configured to receive from the first a request message of the mobility management network element, the request message is used to request to acquire a context of the terminal, and the sending unit is configured to send a context of the terminal to the first mobility management network element, where the terminal
  • the context includes information associated with the second policy, the information associated with the second policy includes an identifier of the second visited policy control network element, and the second policy association is controlled by the second visited policy control network element.
  • the processing unit is configured to start a first timer, and the processing unit is further configured to receive, at the receiving unit, the second visited location before the first timer expires If the policy controls the first notification message of the network element, the first timer is stopped, where the first notification message is used to notify the second mobility management network element, and the second visited policy control network element A message is received for requesting to update the second policy association.
  • the processing unit is configured to start a first timer; the processing unit is further configured to: when the receiving unit fails to receive the second visited location before the first timer expires And the first notification message is sent to the second visited policy control network element, where the first notification message is used to notify the second mobility management network element,
  • the second visited policy control network element receives a message for requesting to update the second policy association, where the first delete request message is used to request the second visited policy to control the network element to delete the second a policy association, and configured to instruct the second visited policy control network element to request the second home policy control network element to delete the first policy association, where the first policy association is controlled by the second home location policy Created for the terminal; wherein the second home policy control network element is located at the home public land mobile network hPLMN.
  • the first deletion request message includes a first deletion indication, where the first deletion indication is used to indicate that the second visited policy control network element requests the second attribution policy to control network element deletion.
  • the first policy is associated.
  • the sending unit is further configured to send a second deletion request message to the second visited policy control network element, where the second deletion request message is used to indicate the second visited location policy control
  • the network element deletes the second policy association when it does not receive a message for requesting to update the second policy association.
  • the receiving unit is configured to receive a request message from a first mobility management network element, where the request message is used to request to acquire a context of the terminal, and the sending unit is configured to a mobility management network element sends the context of the terminal, the context of the terminal includes information associated with the first policy, and the information associated with the first policy includes an identifier of the second home policy control network element, the first The policy association is created by the second home policy control network element for the terminal; wherein the first mobility management network element is located at the first visited local public mobile network vPLMN, and the second mobility management The network element is located in the second vPLMN or the public land mobile network hPLMN located at the home location, and the second home policy control network element is located in the hPLMN.
  • the processing unit is further configured to start a first timer; the sending unit is further configured to: If the first notification message from the second visited policy control network element is not received before the first timer expires, the first deletion request message is sent to the second visited policy control network element, where the first The notification message is used to notify the second mobility management network element, and the second home policy control network element receives a message for requesting to update the first policy association, where the first deletion request message is used for requesting The second visited policy control network element deletes the second policy association, and is used to instruct the second visited policy control network element to request the second home policy control network element to delete the first policy association.
  • the second policy association is created by the second visited policy control network element for the terminal.
  • the first deletion request message includes a first deletion indication, where the first deletion indication is used to indicate that the second visited policy control network element requests the second attribution policy to control network element deletion.
  • the first policy is associated.
  • the processing unit is further configured to start a first timer; the sending unit is further configured to be used by the receiving unit
  • the second mobility management network element sends the first notification message from the second visited policy control network element before the first timer expires, and sends the first notification message to the second visited policy control network element.
  • a second deletion request message the first notification message is used to notify the second mobility management network element, and the second home policy control network element receives a message for requesting to update the first policy association
  • the second deletion request message is used to request the second visited policy to control the network element to delete the second policy association, where the second policy association is controlled by the second visited policy control network element for the terminal.
  • the second visited policy control network element is located in the second vPLMN.
  • the second deletion request message includes a second deletion indication, where the second deletion indication is used to indicate that the second visited policy control network element does not control the network element to the second attribution policy Request to delete the first policy association.
  • the sending unit is further configured to send a third delete request message to the second visited policy control network element, where the The third deletion request message is used to indicate that the second visited policy control network element deletes the second policy association when not receiving a message for requesting to update the second policy association, where the second policy association is The second visited policy control network element is created for the terminal.
  • the receiving unit is further configured to receive an identifier of the first resource from the second visited policy control network element, where the A resource is a resource associated with the first policy, and the information associated with the first policy included in the context of the terminal further includes an identifier of the first resource; or
  • the receiving unit is further configured to receive information about the first resource from the second visited policy control network element, where the information associated with the first policy includes an identifier of the second home policy control network element Specifically, the information associated with the first policy includes information about the first resource, and the information of the first resource includes an identifier of the second home policy control network element and the first resource. logo.
  • the processing unit is further configured to start a second timer, where the sending unit is further configured to: If the second notification message from the second home policy control network element is not received before the second timer expires, the fourth deletion request message is sent to the second home policy control network element, where the second notification message is sent. And configured to notify the second mobility management network element, where the second home policy control network element receives a message for requesting to update the first policy association, where the fourth delete request message is used to request the The second home policy control network element deletes the first policy association.
  • the receiving unit is configured to receive the first mobility management. a first update request message of the network element, where the first update request message includes information of the first mobility management network element, and the processing unit is configured to associate the second policy according to the first update request message
  • the information of the second mobility management network element in the information is updated to the information of the first mobility management network element, and the second policy association is created by the second visited location policy control network element for the terminal;
  • the first mobility management network element, the second visited policy control network element, and the second mobility management network element are located in the same visited public land mobile network vPLMN.
  • the receiving unit is further configured to: before receiving the first update request message, receive a first deletion request message from the second mobility management network element, the first deletion request The message is used to request to delete the second policy association; the processing unit is further configured to start a timer; correspondingly, the receiving unit receives the first update request message from the first mobility management network element, specifically: Receiving the first update request message from the first mobility management network element before the timer expires.
  • the first deletion request message includes a deletion indication, where the deletion indication is used to indicate that the second visited policy control network element does not receive a message for requesting to update the second policy association.
  • the second policy association is deleted; the second visited policy controls the network element to start a timer, and the second visited policy control network element starts the timer according to the deletion indication.
  • the first deletion request message includes an indication that the mobility management network element changes
  • the indication of the mobility management network element change is used to indicate that the first deletion request message is by a mobility management network element.
  • the change is triggered by the processing unit, and the processing unit is configured to start the timer, specifically: the processing unit starts the timer according to the indication that the mobility management network element changes.
  • the receiving unit is further configured to: after receiving the first update request message, receive a second deletion request message from the second mobility management network element, where the second deletion request is The message is used to request to delete the second policy association; the processing unit is further configured to ignore the second deletion request message.
  • the sending unit is configured to send a first notification message to the second mobility management network element, where the first notification message is used to notify the second mobility management network element,
  • the second visited policy control network element receives the first update request message.
  • the first update request message further includes an identifier of the second resource, where the second resource is a resource corresponding to the second policy association, and the first update request message is specifically used to request that The information of the second mobility management network element in the information related to the second policy in the second resource is updated to the information of the first mobility management network element.
  • the sending unit is configured to send a second update request message to the second home policy control network element, where the second update request message is used to request the second home policy to control the network element update.
  • the first policy association is that the first policy association is controlled by the second home policy control network element, and the second home policy control network element is located in the hPLMN.
  • the receiving unit is configured to receive the first mobility management. a setup request message of the network element, where the setup request message includes update information and information of the first mobility management network element, where the update information includes an identifier of the second home policy control network element, and the update information Instructing the first visited policy control network element to send an update request message to the second home policy control network element; the processing unit, configured to use, according to the information of the first mobility management network element, The terminal creates a third policy association, and the sending unit is configured to send, according to the update information, an update request message to the second home policy control network element, where the update request message includes a first visited policy control network element.
  • the update request message is used to request the second home policy control network element to control the second visited location policy in the information associated with the first policy to control the network element
  • the information is updated to the first visited location policy control network element information; wherein the first mobility management network element and the first visited local policy control network element are located in the first visited public land mobile network vPLMN, The second mobility management network element and the second visited policy control network element are located in the second vPLMN, and the second home policy control network element is located in the homeland public land mobile network hPLMN.
  • the update information includes an identifier of the second home policy control network element, specifically: the update information includes information of a first resource, and the information of the first resource includes the second The attribution policy controls the identifier of the network element and the identifier of the first resource, where the first resource is a resource corresponding to the first policy association, and the update request message is used to request the second home location policy control network Updating the information of the second visited policy control network element in the information related to the first policy to the information of the first visited local policy control network element, specifically: the first in the update information
  • the information of the resource is used to indicate that the first visited policy control network element requests the second home policy control network element to update the first policy association; or
  • the update information further includes an identifier of the first resource, where the update information is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element, specifically: The identifier of the first resource and the identifier of the second home policy control network element in the update information are used to indicate that the first visited policy control network element controls the network element to the second home location policy Send an update request message; or,
  • the update information further includes indication information, where the update information is used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element, specifically: the update information
  • the indication information and the identifier of the second home policy control network element are used to indicate that the first visited policy control network element sends an update request message to the second home policy control network element.
  • the receiving unit is configured to receive An update request message from the second visited policy control network element; the processing unit, configured to update the first policy association according to the update request message, where the first policy association is controlled by the second home location policy
  • the network element is created by the terminal, where the second visited policy control network element is located in the vPLMN, and the second home location policy control network element is located in the hPLMN.
  • the receiving unit is configured to receive an update request message from the first visited policy control network element, where the update request message includes information of the first visited policy control network element;
  • a processing unit configured to update information of the second visited policy control network element in the information associated with the first policy to information of the first visited policy control network element, where the first policy association is The secondary attribute policy control network element is created for the terminal;
  • the first visited location policy control network element is located in the first visited place public land mobile network vPLMN
  • the second visited place policy control network element is located in the second vPLMN
  • the second home location policy control network element Located at the home land of the public land mobile network hPLMN.
  • the sending unit is configured to send a first notification message to the second visited policy control network element, where the first notification message is used to notify the second visited policy control network element,
  • the second home policy control network element receives the update request message.
  • the sending unit is configured to send a second notification message to the second mobility management network element, where the second notification message is used to notify the second mobility management network element, the second The home policy control network element receives the update request message, and the second mobility management network element is located in the hPLMN.
  • the apparatus may be used to implement the method in the embodiment of the present invention, where the first mobility management network element, the second mobility management network element, the first visited location policy control network element, and the second visited location policy control network element.
  • the second home policy controls the steps performed by the network element.
  • the function/implementation process of the receiving unit 1301, the processing unit 1303, and the transmitting unit 1302 in FIG. 13 can be implemented by the processor 1201 in FIG. 12 calling the computer executing instructions stored in the memory 1203.
  • the function/implementation process of the processing unit 1303 in FIG. 13 can be implemented by the processor 1201 in FIG. 12 calling the computer execution instruction stored in the memory 1203, and the function/implementation of the receiving unit 1301 and the transmitting unit 1302 in FIG.
  • the process can be implemented by communication interface 1204 in FIG.
  • the function/implementation process of the receiving unit 1301 and the transmitting unit 1302 may also be implemented by a pin or a circuit or the like.
  • the memory 1303 may be a memory unit within the chip, such as a register, a cache, or the like.
  • the memory 1303 may be located outside the chip in the mobility management network element. The storage unit of the present application does not specifically limit this.
  • the memory 1303 may be a policy control.
  • the storage unit located outside the chip in the network element is not specifically limited in this embodiment of the present application.
  • the present application further provides a system including the second visited policy control network element and the first mobility management network element in the embodiment shown in FIG. 2 or FIG. 8 above. Further, the system may further include a second mobility management network element in the embodiment shown in FIG. 2 or FIG. 8. Further, the system may further include a second home policy control network element in the embodiment shown in FIG. 2 or FIG. 8.
  • the present application further provides another system, which includes the second visited policy control network element and the first mobility management network element in the embodiment shown in FIG. 3 or FIG. 9 above. Further, the system may further include a second mobility management network element in the embodiment shown in FIG. 3 or 9. Further, the system may further include a second attribution policy control network element in the embodiment shown in FIG. 3 or FIG. 9.
  • the present application further provides another system, which includes the first visited policy control network element and the first mobility management network element in the embodiment shown in FIG. 4 or FIG. 10 above.
  • the system may further include a second mobility management network element in the embodiment shown in FIG. 4 or FIG.
  • the system may further include a second home policy control network element in the embodiment shown in FIG. 4 or FIG. 10.
  • the system may further include a second visited policy control network element in the embodiment shown in FIG. 4 or FIG. 10.
  • the present application further provides another system, which includes the first visited policy control network element and the first mobility management network element in the embodiment shown in FIG. 5 or FIG. Further, the system may further include a second mobility management network element in the embodiment shown in FIG. 5 or FIG. Further, the system may further include a second attribution policy control network element in the embodiment shown in FIG. 5 or FIG. 11. Further, the system may further include a second visited policy control network element in the embodiment shown in FIG. 5 or FIG. 11.
  • the present application further provides another system, which includes the first visited policy control network element and the first mobility management network element in the foregoing embodiment shown in FIG. 6. Further, the system may further include a second mobility management network element in the embodiment shown in FIG. 6. Further, the system may further include a second home policy control network element in the embodiment shown in FIG. 6.
  • the present application further provides another system, which includes the first visited policy control network element and the first mobility management network element in the foregoing embodiment shown in FIG. Further, the system may further include a second mobility management network element in the embodiment shown in FIG. Further, the system may further include a second home policy control network element in the embodiment shown in FIG. 7.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a Solid State Disk (SSD)) or the like.
  • a magnetic medium eg, a floppy disk, a hard disk, a magnetic tape
  • an optical medium eg, a DVD
  • a semiconductor medium such as a Solid State Disk (SSD)
  • a general purpose processor may be a microprocessor.
  • the general purpose processor may be any conventional processor, controller, microcontroller, or state machine.
  • the processor may also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration. achieve.
  • the steps of the method or algorithm described in the embodiments of the present application may be directly embedded in hardware, a software unit executed by a processor, or a combination of the two.
  • the software unit can be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium in the art.
  • the storage medium can be coupled to the processor such that the processor can read information from the storage medium and can write information to the storage medium.
  • the storage medium can also be integrated into the processor.
  • the processor and the storage medium may be disposed in the ASIC, and the ASIC may be disposed in the terminal device. Alternatively, the processor and the storage medium may also be disposed in different components in the terminal device.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请提供一种策略控制方法、装置及系统。该方法包括:第二拜访地策略控制网元接收到第一移动性管理网元发送的第一更新请求消息后,根据该第一更新请求消息将第二拜访地策略控制网元中的第二策略关联的信息中的第二移动性管理网元的信息更新为第一移动性管理网元的信息,该第二策略是由第二拜访地策略控制网元为终端创建的。由于第二拜访地策略控制网元不需要删除终端对应的策略关联的信息中的第二移动性管理网元的信息,以及不需要重新建立与第一移动性管理网元的策略关联,而是直接将第二策略关联的信息中的第二移动性管理网元的信息更新为第一移动性管理网元的信息,因而可以节约策略控制的资源开销。

Description

一种策略控制方法、装置及系统
本申请要求于2018年5月16日提交中国国家知识产权局、申请号为201810470323.5、发明名称为“一种策略控制方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及移动通信技术领域,尤其涉及一种策略控制方法、装置及系统。
背景技术
在第五代(5th generation,5G)系统中,接入与移动性管理功能(access and mobility management function,AMF)网元,可以与策略控制功能(policy control function,PCF)网元获取交互,以便获取终端策略及接入和移动性管理策略。并且,在终端注册至网络的过程中,AMF网元会与PCF网元建立策略关联,PCF网元通过该策略关联向AMF网元提供策略。
当终端发生漫游时,在AMF网元重选的场景中,重选前的AMF网元称为Old AMF,重选后的AMF网元称为New AMF。在AMF网元重选过程中,当New AMF与Old AMF在同一个公共陆地移动网络(public land mobile network,PLMN)中时,若New AMF选择了Old vPCF,则New AMF会向该Old vPCF请求建立策略关联,其中,该Old vPCF是与Old AMF建立策略关联的位于拜访地的PCF网元。Old vPCF在接收到来自New AMF的建立策略关联的请求后,建立Old vPCF与New AMF的策略关联,并且Old vPCF后续还需要删除与Old AMF的策略关联,这将导致Old vPCF上的资源的浪费。
发明内容
本申请提供一种策略控制方法、装置及系统,用以在移动性管理网元的重选的场景中,节约策略控制网元的资源开销。
第一方面,本申请提供一种策略控制方法。该方法包括:第二拜访地策略控制网元接收来自第一移动性管理网元的第一更新请求消息,第一更新请求消息包括第一移动性管理网元的信息;第二拜访地策略控制网元根据第一更新请求消息,将第二策略关联的信息中的第二移动性管理网元的信息更新为第一移动性管理网元的信息,第二策略关联是由第二拜访地策略控制网元为终端创建的;其中,第一移动性管理网元、第二拜访地策略控制网元和第二移动性管理网元位于同一个拜访地公共陆地移动网络(visited public land mobile network,vPLMN)。基于该方案,在移动性管理网元的重选的场景中,第一移动性管理网元为重选后的移动性管理网元,第二移动性管理网元为重选前的移动性管理网元,第二拜访地策略控制网元是与第二移动性管理网元建立策略关联的策略控制网元,且第一移动性管理网元、第二拜访地策略控制网元和第二移动性管理网元位于同一个vPLMN。当第一移动性管理网元选择了该第二拜访地策略控制网元时,则第二拜访地策略控制网元可以 接收到第一移动性管理网元发送的第一更新请求消息后,进而,第二拜访地策略控制网元可以根据该第一更新请求消息将第二拜访地策略控制网元中存储的第二策略关联的信息中的第二移动性管理网元的信息更新为第一移动性管理网元的信息,其中,第一移动性管理网元的信息是携带于更新请求消息中的,该第二策略是由第二拜访地策略控制网元为终端创建的。由于第二拜访地策略控制网元不需要删除第二策略关联的信息中的第二移动性管理网元的信息,以及不需要重新建立与第一移动性管理网元的策略关联,而是直接将第二策略关联的信息中的第二移动性管理网元的信息更新为第一移动性管理网元的信息,因而可以节约策略控制的资源开销。
在一种可能的实现方式中,第二拜访地策略控制网元接收到第一更新请求消息之前,第二拜访地策略控制网元还可以接收来自第一移动性管理网元的第一删除请求消息,该第一删除请求消息用于请求删除第二策略关联;则第二拜访地策略控制网元启动定时器;相应的,第二拜访地策略控制网元接收来自第一移动性管理网元的第一更新请求消息,具体为:在定时器超时前,第二拜访地策略控制网元接收到来自第一移动性管理网元的第一更新请求消息。基于该方案,第二拜访地策略控制网元若在接收到第一更新请求消息之前,先接收到第二移动性管理网元发送的用于请求删除第二策略关联的第一删除请求消息,则第二拜访地策略控制网元启动定时器。若在定时器超时前,第二拜访地策略控制网元接收到来自第一移动性管理网元的第一更新请求消息,则第二拜访地策略控制网元根据第一更新请求消息,将第二策略关联的信息中的第二移动性管理网元的信息更新为第一移动性管理网元的信息。进一步的,若定时器超时后第二拜访地策略控制网元才接收到第一更新请求消息,或者,第二拜访地策略控制网元直到定时器超时也没有接收到第一更新请求消息,则第二拜访地策略控制网元在定时器发生超时时,根据第一删除请求消息删除第二策略关联,具体地,第二拜访地策略控制网元删除第二策略关联的信息。
在一种可能的实现方式中,第一删除请求消息包括删除指示,删除指示用于指示第二拜访地策略控制网元在未接收到用于请求更新第二策略关联的消息时删除第二策略关联;则第二拜访地策略控制网元启动定时器,具体可以包括:第二拜访地策略控制网元根据删除指示,启动定时器。这里的删除指示,是一种条件删除指示,即用于指示第二拜访地策略控制网元:若未接收到用于请求更新第二策略关联的消息,如上述第一更新请求消息,则删除第二策略关联。
在实际应用中,该删除指示还可以使用以下任一实现方式:
比如,删除指示可以用于指示若第二拜访地策略控制网元接收到第一移动性管理网元发送的用于请求更新第二策略关联的消息则不删除第二策略关联。
再比如,删除指示还可以用于指示第二拜访地策略控制网元若接收到第一移动性管理网元发送的用于请求更新第二策略关联的消息则不删除第二策略关联,第二拜访地策略控制网元若未接收到用于请求更新策略关联的消息则删除第二策略关联。其中,删除第二策略关联,具体指的是删除第二策略关联的信息。
在一种可能的实现方式中,第一删除请求消息包括移动性管理网元改变的指示,移动性管理网元改变的指示用于指示第一删除请求消息是由移动性管理网元的改变触发的;则第二拜访地策略控制网元启动定时器,具体可以包括:第二拜访地策略控制网元根据移动 性管理网元改变的指示,启动定时器。基于该方案,当第二拜访地策略控制网元接收到第一删除请求消息时,根据第一删除请求消息中的移动性管理网元改变的指示,可以确定移动性管理网元发生重选,因此会启动定时器。
在一种可能的实现方式中,第二拜访地策略控制网元接收到第一更新请求消息之后,还可以接收来自第二移动性管理网元的第二删除请求消息,第二删除请求消息用于请求删除第二策略关联;则第二拜访地策略控制网元忽略第二删除请求消息。如此,有助于第二拜访地策略控制网元节约资源开销。
在一种可能的实现方式中,第二拜访地策略控制网元还可以向第二移动性管理网元发送第一通知消息,第一通知消息用于通知第二移动性管理网元:第二拜访地策略控制网元接收到了第一更新请求消息。
在一种可能的实现方式中,第一更新请求消息还可以包括第二资源的标识,第二资源为第二策略关联对应的资源,则第一更新请求消息具体用于请求将第二资源中的第二策略关联的信息中的的第二移动性管理网元的信息更新为第一移动性管理网元的信息。
在一种可能的实现方式中,第二拜访地策略控制网元还可以向第二归属地策略控制网元发送第二更新请求消息,第二更新请求消息用于请求第二归属地策略控制网元更新第一策略关联,第一策略关联是由第二归属地策略控制网元为终端创建的;其中,第二归属地策略控制网元位于归属地公共陆地移动网络(home public land mobile network,hPLMN)。基于该方案,当第一移动性管理网元选择了该第二拜访地策略控制网元时,默认第一移动性管理网元也选择了第二归属地策略控制网元,该第二归属地策略控制网元为与第二拜访地策略控制网元建立策略关联的策略控制网元,则第二归属地策略控制网元可以接收到第二拜访地策略控制网元发送的第二更新请求消息,进而,第二归属地策略控制网元可以根据该第二更新请求消息更新第二归属地策略控制网元中存储的第一策略关联,其中,该第一策略关联是由第二归属地策略控制网元为终端创建的。
第二方面,本申请提供一种策略控制方法。该方法包括:第一移动性管理网元接收来自第二移动性管理网元的终端的上下文,终端的上下文包括第二策略关联的信息,第二策略关联的信息包括第二拜访地策略控制网元的标识,第二策略关联是由第二拜访地策略控制网元为终端创建的;第一移动性管理网元若选择第二拜访地策略控制网元,则向第二拜访地策略控制网元发送更新请求消息,更新请求消息包括第一移动性管理网元的信息,更新请求消息用于请求第二拜访地策略控制网元将第二策略关联的信息中的第二移动性管理网元的信息更新为第一移动性管理网元的信息;其中,第一移动性管理网元、第二移动性管理网元和第二拜访地策略控制网元位于同一个拜访地公共陆地移动网络vPLMN。
在一种可能的实现方式中,第二策略关联的信息包括第二拜访地策略控制网元的标识,具体为:第二策略关联的信息包括第二资源的信息,第二资源的信息包括第二拜访地策略控制网元的标识和第二资源的标识,第二资源为第二策略关联对应的资源,则更新请求消息具体用于请求将第二资源中的第二策略关联的信息中的第二移动性管理网元的信息更新为第一移动性管理网元的信息;或者,
终端的上下文包括的第二策略关联的信息还包括第二资源的标识,则更新请求消息还包括第二资源的标识,更新请求消息具体用于请求将第二资源中的第二策略关联的信息中 的第二移动性管理网元的信息更新为第一移动性管理网元的信息。
第三方面,本申请提供一种策略控制方法。该方法包括:第二移动性管理网元接收来自第一移动性管理网元的请求消息,请求消息用于请求获取终端的上下文;第二移动性管理网元向第一移动性管理网元发送终端的上下文,终端的上下文包括第二策略关联的信息,第二策略关联的信息包括第二拜访地策略控制网元的标识,第二策略关联是由第二拜访地策略控制网元为终端创建的;其中,第一移动性管理网元、第二拜访地策略控制网元和第二移动性管理网元位于同一个拜访地公共陆地移动网络vPLMN。
在一种可能的实现方式中,第二移动性管理网元还可以启动第一定时器;若第二移动性管理网元在第一定时器超时前接收到来自第二拜访地策略控制网元的第一通知消息,第一通知消息用于通知第二移动性管理网元,第二拜访地策略控制网元接收到了用于请求更新第二策略关联的消息,则第二移动性管理网元停止第一定时器。
在一种可能的实现方式中,第二移动性管理网元还可以启动第一定时器;若第二移动性管理网元在第一定时器超时前未接收到来自第二拜访地策略控制网元的第一通知消息,第一通知消息用于通知第二移动性管理网元,第二拜访地策略控制网元接收到了用于请求更新第二策略关联的消息,则第二移动性管理网元向第二拜访地策略控制网元发送第一删除请求消息,第一删除请求消息用于请求第二拜访地策略控制网元删除第二策略关联,以及用于指示第二拜访地策略控制网元请求第二归属地策略控制网元删除第一策略关联,第一策略关联是由第二归属地策略控制网元为终端创建的;其中,第二归属地策略控制网元位于归属地公共陆地移动网络hPLMN。
在一种可能的实现方式中,第一删除请求消息包括第一删除指示,第一删除指示用于指示第二拜访地策略控制网元请求第二归属地策略控制网元删除第一策略关联。
在一种可能的实现方式中,第二移动性管理网元还可以向第二拜访地策略控制网元发送第二删除请求消息,第二删除请求消息用于指示第二拜访地策略控制网元在未接收到用于请求更新第二策略关联的消息时删除第二策略关联。
第四方面,本申请提供一种策略控制方法。该方法包括:第二归属地策略控制网元接收来自第二拜访地策略控制网元的更新请求消息;第二归属地策略控制网元根据更新请求消息,更新第一策略关联,第一策略关联是由第二归属地策略控制网元为终端创建的;其中,第二拜访地策略控制网元位于vPLMN,第二归属地策略控制网元位于hPLMN。
第五方面,本申请提供一种策略控制方法。该方法包括:第一拜访地策略控制网元接收来自第一移动性管理网元的建立请求消息,建立请求消息包括更新信息和第一移动性管理网元的信息,更新信息包括第二归属地策略控制网元的标识,更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息;第一拜访地策略控制网元根据第一移动性管理网元的信息,为终端创建第三策略关联;第一拜访地策略控制网元根据更新信息,向第二归属地策略控制网元发送更新请求消息,更新请求消息包括第一拜访地策略控制网元的信息,更新请求消息用于请求第二归属地策略控制网元将第一策略关联的信息中的第二拜访地策略控制网元的信息更新为第一拜访地策略控制网元的信息;其中,第一移动性管理网元和第一拜访地策略控制网元位于第一拜访地公共陆地移动网络vPLMN,第二移动性管理网元和第二拜访地策略控制网元位于第二vPLMN,第二归属 地策略控制网元位于归属地拜访地公共陆地移动网络hPLMN。
在一种可能的实现方式中,更新信息包括第二归属地策略控制网元的标识,具体为:更新信息包括第一资源的信息,第一资源的信息包括第二归属地策略控制网元的标识和第一资源的标识,第一资源为第一策略关联对应的资源,更新请求消息用于指示所述第一拜访地策略控制网元请求所述第二归属地策略控制网元更新所述第一策略关联,具体为:更新信息中的第一资源的信息用于指示第一拜访地策略控制网元请求第二归属地策略控制网元更新第一策略关联;或者,
更新信息还包括第一资源的标识,更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息具体为:更新信息中的第一资源的标识和第二归属地策略控制网元的标识用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息;或者,
更新信息还包括指示信息,更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息,具体为:更新信息中的指示信息和第二归属地策略控制网元的标识用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息。
第六方面,本申请提供一种策略控制方法。该方法包括:第一移动性管理网元接收来自第二移动性管理网元的终端的上下文,终端的上下文包括第一策略关联的信息,第一策略关联的信息包括第二归属地策略控制网元的标识,第一策略关联是由第二归属地策略控制网元为终端创建的;第一移动性管理网元若选择第一拜访地策略控制网元,则向第一拜访地策略控制网元发送建立请求消息,建立请求消息包括更新信息和第一移动性管理网元的信息,建立请求消息用于请求第一拜访地策略控制网元根据第一移动性管理网元的信息为终端创建第三策略关联,更新信息包括第二归属地策略控制网元的标识,更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息;其中,第一移动性管理网元和第一拜访地策略控制网元位于第一拜访地拜访地公共陆地移动网络vPLMN,第二移动性管理网元位于第二vPLMN或归属地拜访地公共陆地移动网络hPLMN,第二归属地策略控制网元位于hPLMN。
在一种可能的实现方式中,第一策略关联的信息包括第二归属地策略控制网元的标识,具体为:策略关联的信息包括第一资源的信息,第一资源的信息包括第二归属地策略控制网元的标识和第一资源的标识,第一资源为第一策略关联对应的资源,则更新信息包括第二归属地策略控制网元的标识,具体为:更新信息包括第一资源的信息,更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息,具体为:更新信息中的第一资源的信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息;或者,
第一策略关联的信息还包括第一资源的标识,则更新信息还包括第一资源的标识,更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息,具体为:更新信息中的第二归属地策略控制网元的标识和第一资源的标识用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息;或者,
更新信息还包括指示信息,更新信息用于指示所述第一拜访地策略控制网元向所述第 二归属地策略控制网元发送更新请求消息具体为:更新信息中的第二归属地策略控制网元的标识和指示信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息。
第七方面,本申请提供一种策略控制方法。该方法包括:第二移动性管理网元接收来自第一移动性管理网元的请求消息,请求消息用于请求获取终端的上下文;第二移动性管理网元向第一移动性管理网元发送终端的上下文,终端的上下文包括第一策略关联的信息,第一策略关联的信息包括第二归属地策略控制网元的标识,第一策略关联是由第二归属地策略控制网元为终端创建的;其中,第一移动性管理网元位于第一拜访地拜访地公共陆地移动网络vPLMN,第二移动性管理网元位于第二vPLMN或位于归属地拜访地公共陆地移动网络hPLMN,第二归属地策略控制网元位于hPLMN。
在一种可能的实现方式中,若第二移动性管理网元位于第二vPLMN,则第二移动性管理网元可以启动第一定时器;若在第一定时器超时前未接收到来自第二拜访地策略控制网元的第一通知消息,第一通知消息用于通知第二移动性管理网元,第二归属地策略控制网元接收到了用于请求更新第一策略关联的消息,则第二移动性管理网元向第二拜访地策略控制网元发送第一删除请求消息,第一删除请求消息用于请求第二拜访地策略控制网元删除第二策略关联,以及用于指示第二拜访地策略控制网元请求第二归属地策略控制网元删除第一策略关联,第二策略关联是由第二拜访地策略控制网元为终端创建的。
在一种可能的实现方式中,第一删除请求消息包括第一删除指示,第一删除指示用于指示第二拜访地策略控制网元请求第二归属地策略控制网元删除第一策略关联。
在一种可能的实现方式中,若第二移动性管理网元位于第二vPLMN,则第二移动性管理网元可以启动第一定时器;若第二移动性管理网元在第一定时器超时前接收到来自第二拜访地策略控制网元的第一通知消息,第一通知消息用于通知第二移动性管理网元,第二归属地策略控制网元接收到了用于请求更新第一策略关联的消息,则第二移动性管理网元向第二拜访地策略控制网元发送第二删除请求消息,第二删除请求消息用于请求第二拜访地策略控制网元删除第二策略关联,第二策略关联是由第二拜访地策略控制网元为终端创建的;其中,第二拜访地策略控制网元位于第二vPLMN。
在一种可能的实现方式中,第二删除请求消息包括第二删除指示,第二删除指示用于指示第二拜访地策略控制网元不向第二归属地策略控制网元请求删除第一策略关联。
在一种可能的实现方式中,若第二移动性管理网元位于第二vPLMN,则第二移动性管理网元可以向第二拜访地策略控制网元发送第三删除请求消息,第三删除请求消息用于指示第二拜访地策略控制网元在未接收到用于请求更新第一策略关联的消息时删除第二策略关联,第二策略关联是由第二拜访地策略控制网元为终端创建的。
在一种可能的实现方式中,若第二移动性管理网元位于第二vPLMN,则第二移动性管理网元可以接收来自第二拜访地策略控制网元的第一资源的标识,第一资源为第一策略关联对应的资源,终端的上下文中包括的第一策略关联的信息中还包括第一资源的标识;或者,
第二移动性管理网元接收来自第二拜访地策略控制网元的第一资源的信息,则第一策略关联的信息包括第二归属地策略控制网元的标识,具体为:第一策略关联的信息包括第一资源的信息,第一资源的信息包括第二归属地策略控制网元的标识和第一资源的标识。
在一种可能的实现方式中,若第二移动性管理网元位于hPLMN,则第二移动性管理网元还可以启动第二定时器;若在第二定时器超时前未接收到来自第二归属地策略控制网元的第二通知消息,第二通知消息用于通知第二移动性管理网元,第二归属地策略控制网元接收到了用于请求更新第一策略关联的消息,则第二移动性管理网元向第二归属地策略控制网元发送第四删除请求消息,第四删除请求消息用于请求第二归属地策略控制网元删除第一策略关联。
第八方面,本申请提供一种策略控制方法。该方法包括:第二归属地策略控制网元接收来自第一拜访地策略控制网元的更新请求消息,更新请求消息包括第一拜访地策略控制网元的信息;第二归属地策略控制网元将第一策略关联的信息中的第二拜访地策略控制网元的信息更新为第一拜访地策略控制网元的信息,第一策略关联是由第二归属地策略控制网元为终端创建的;其中,第一拜访地策略控制网元位于第一拜访地拜访地公共陆地移动网络vPLMN,第二拜访地策略控制网元位于第二vPLMN,第二归属地策略控制网元位于归属地拜访地公共陆地移动网络hPLMN。
在一种可能的实现方式中,第二归属地策略控制网元还可以向第二拜访地策略控制网元发送第一通知消息,第一通知消息用于通知第二拜访地策略控制网元,第二归属地策略控制网元接收到了更新请求消息。
在一种可能的实现方式中,第二归属地策略控制网元还可以向第二移动性管理网元发送第二通知消息,第二通知消息用于通知第二移动性管理网元,第二归属地策略控制网元接收到了更新请求消息,第二移动性管理网元位于hPLMN。
第九方面,本申请提供一种装置,该装置可以是移动性管理网元、策略控制网元,也可以是芯片。该装置具有实现上述第一方面至第八方面中任意一个方面的各实施例的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。
第十方面,提供了一种装置,包括:处理器和存储器;该存储器用于存储计算机执行指令,当该装置运行时,该处理器执行该存储器存储的该计算机执行指令,以使该装置执行如上述第一方面或第一方面中任一所述的策略控制方法、或者以使该装置执行如上述第二方面或第二方面中任一所述的策略控制方法、或者以使该装置执行如上述第三方面或第三方面中任一所述的策略控制方法、或者以使该装置执行如上述第四方面或第四方面中任一所述的策略控制方法、或者以使该装置执行如上述第五方面或第五方面中任一所述的策略控制方法、或者以使该装置执行如上述第六方面或第六方面中任一所述的策略控制方法、或者以使该装置执行如上述第七方面或第七方面中任一所述的策略控制方法、或者以使该装置执行如上述第八方面或第八方面中任一所述的策略控制方法。
第十一方面,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。
第十二方面,本申请还提供一种包括指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。
第十三方面,本申请还提供一种系统,该系统包括上述第一方面中的任一第二拜访地策略控制网元,和,上述第二方面中的任一第一移动性管理网元。进一步地,该系统还可 以包括上述第三方面的任一第二移动性管理网元。进一步地,该系统还可以包括上述第四方面的任一第二归属地策略控制网元。
第十四方面,本申请还提供一种系统,该系统包括上述第五方面中的任一第一拜访地策略控制网元,和,上述第六方面中的任一第一移动性管理网元。进一步地,该系统还可以包括上述第七方面的任一第二移动性管理网元。进一步地,该系统还可以包括上述第八方面的任一第二归属地策略控制网元。
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。
附图说明
图1(a)为本申请提供的一种可能的网络架构示意图;
图1(b)为本申请提供的又一种可能的网络架构示意图;
图1(c)为本申请提供的又一种可能的网络架构示意图;
图2为本申请提供的一种策略控制方法示意图;
图3为本申请提供的又一种策略控制方法示意图;
图4为本申请提供的又一种策略控制方法示意图;
图5为本申请提供的又一种策略控制方法示意图;
图6为本申请提供的又一种策略控制方法示意图;
图7为本申请提供的又一种策略控制方法示意图;
图8为本申请提供的又一种策略控制方法示意图;
图9为本申请提供的又一种策略控制方法示意图;
图10为本申请提供的又一种策略控制方法示意图;
图11为本申请提供的又一种策略控制方法示意图;
图12为本申请提供的一种装置示意图;
图13为本申请提供的又一种装置示意图。
具体实施方式
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述。方法实施例中的具体操作方法也可以应用于装置实施例或系统实施例中。其中,在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
本申请实施例中,主要应用于在漫游场景中发生移动性管理网元的重选,涉及到的设备主要包括策略控制网元和移动性管理网元。
本申请中的移动性管理网元,主要用于移动网络中的移动性管理,如用户位置更新、用户注册网络、用户切换等。在5G通信中,移动性管理网元可以是接入与移动性管理功能 (access and mobility management function,AMF)网元,在未来通信如第6代(6th generation,6G)通信中,移动性管理网元仍可以是AMF网元,或者有其它名称,本申请对此不作限定。
本申请中的策略控制网元,包括用户签约数据管理功能,策略控制功能,计费策略控制功能,服务质量(quality of service,QoS)控制功能等。在5G中,策略控制网元可以是策略控制功能(policy control function,PCF)网元,在未来通信如6G中,策略控制网元仍可以是PCF网元,或有其它的名称,本申请不做限定。
为方便说明,本申请后续以移动性管理网元称为AMF网元,策略控制网元称为PCF网元为例进行说明,进一步的,将AMF网元简称为AMF,将PCF网元简称为PCF,即本申请后续所描述的AMF均可替换为移动性管理网元,PCF均可替换为策略控制网元。
本申请中,位于vPLMN的PCF称为拜访地PCF(visited PCF,vPCF),位于hPLMN的PCF称为归属地PCF(home PCF,hPCF)。
本申请中,若发生AMF的重选之前,终端使用的AMF位于vPLMN,则基于该场景,发生重选前,终端在归属地使用的PCF称为第二hPCF(或称为Old hPCF),终端在拜访地使用的PCF称为第二vPCF(或称为Old vPCF),终端使用的AMF称为第二AMF(或称为Old AMF)。并且,第二hPCF根据第二vPCF的请求为终端创建一个策略关联,该策略关联称为第一策略关联,或者理解为,第二hPCF和第二vPCF为终端创建了第一策略关联,第一策略关联指的是第二vPCF和第二hPCF之间的一个关联,这个关联用于第二hPCF向第二vPCF传递终端当前的接入相关的参数,以及用于第二hPCF向第二vPCF提供终端的相关策略。其中,体现在第二vPCF一侧,第一策略关联的信息包括第二vPCF中存储的有关该策略关联的信息,比如包括第二hPCF的标识,第一策略关联对应的资源的标识(称为第一资源的标识)以及第二hPCF制定并提供的终端的策略等。体现在第二hPCF一侧,第一策略关联的信息包括第二hPCF中存储的有关该策略关联的信息,比如包括第二vPCF的标识、第二vPCF的用于接收策略更新的地址、第二hPCF为终端制定的策略等。当然,第二hPCF也可以是根据其他网元(比如其他PCF)的请求为终端创建上述第一策略关联。并且,第二vPCF根据第二AMF的请求为终端创建一个策略关联,该策略关联称为第二策略关联,或者理解为,第二vPCF和第二AMF为终端创建了第二策略关联,第二策略关联指的是第二hPCF和第二AMF之间的一个关联,这个关联用于第二vPCF向第二AMF传递终端当前的接入相关的参数,以及用于第二vPCF向第二AMF提供终端的相关策略。其中,体现在第二AMF一侧,第二策略关联的信息包括第二AMF中存储的有关该策略关联的信息,比如包括第二vPCF的标识,第二策略关联对应的资源的标识(称为第二资源的标识)以及第二vPCF制定并提供的终端的策略等。体现在第二vPCF一侧,第二策略关联的信息包括第二hPCF中存储的有关该策略关联的信息,比如包括第二AMF的标识、第二AMF的用于接收策略更新的地址、第二vPCF为终端制定的策略等。当然,第二vPCF也可以是根据其他网元(比如其他AMF)的请求为终端创建上述第二策略关联。
发生重选后,终端在归属地使用的AMF称为第一AMF。终端在拜访地使用的PCF以及终端在归属地使用的PCF,需要依据不同场景进行分别说明。下面结合图1(a)-图1(b),对本申请所适用的不同场景分别进行说明。
需要说明的是,本申请中,终端使用的AMF指的是为终端提供服务的AMF,终端使用的vPCF指的是为终端提供服务的vPCF,终端使用的hPCF指的是为终端提供服务的hPCF。此处统一说明,后续不再单独说明。
如图1(a)所示,为本申请适用的一种可能的网络架构示意图。该网络架构包括第一AMF和第二vPCF,可选的,该网络架构还可以包括第二AMF和第二hPCF,其中,第一AMF、第二AMF和第二vPCF位于同一个vPLMN,第二hPCF位于hPLMN。
基于该网络架构的场景是:发生AMF重选前,终端使用的AMF是第二AMF,终端在拜访地使用的PCF是第二vPCF,终端在归属地使用的PCF是第二hPCF。发生AMF重选后,终端使用的AMF是第一AMF,进一步的,在一个情形中,该第一AMF选择的归属地的PCF是该第二hPCF且该第一AMF选择的拜访地的PCF是该第二vPCF,在另一个情形中,该第一AMF选择的归属地的PCF是第一hPCF(也可以称为New hPCF,图中未示出)且该第一AMF选择的拜访地的PCF是第一vPCF(也可以称为New vPCF,图中未示出)。
如图1(b)所示,为本申请适用的又一种可能的网络架构示意图。该网络架构包括第一AMF、第一vPCF和第二hPCF,可选的,该网络架构还可以包括第二AMF和第二vPCF,其中,第一AMF和第一vPCF位于第一vPLMN,第二AMF和第二vPCF位于第二vPLMN,第一vPLMN与第二vPLMN是不同的vPLMN,第二hPCF位于hPLMN。
基于该网络架构的场景是:发生AMF重选前,终端使用的AMF是第二AMF,终端在拜访地使用的PCF是第二vPCF,终端在归属地使用的PCF是第二hPCF。发生AMF重选后,终端使用的AMF是第一AMF,进一步的,在一个情形中,该第一AMF选择的归属地的PCF是该第二hPCF且该第一AMF选择的拜访地的PCF是第一vPCF(也可以称为New vPCF,图中未示出),在另一个情形中,该第一AMF选择的归属地的PCF是第一hPCF(也可以称为New hPCF,图中未示出)且该第一AMF选择的拜访地的PCF是第一vPCF。
本申请中,若发生AMF的重选之前,终端使用的AMF位于hPLMN,则基于该场景,发生重选前,终端在归属地使用的PCF称为第二hPCF(或称为Old hPCF),终端使用的AMF称为第二AMF(或称为Old AMF)。并且,第二hPCF根据第二AMF的请求为终端创建一个策略关联,该策略关联称为第一策略关联,或者理解为,第二hPCF和第二AMF为终端创建了第一策略关联,第一策略关联指的是第二AMF和第二hPCF之间的一个关联,这个关联用于第二hPCF向第二AMF传递终端当前的接入相关的参数,以及用于第二hPCF向第二AMF提供终端的相关策略。其中,体现在第二AMF一侧,第一策略关联的信息包括第二AMF中存储的有关该策略关联的信息,比如包括第二hPCF的标识,第一策略关联对应的资源的标识(称为第一资源的标识)以及第二hPCF制定并提供的终端的策略等。体现在第二hPCF一侧,第一策略关联的信息包括第二hPCF中存储的有关该策略关联的信息,比如包括第二AMF的标识、第二AMF的用于接收策略更新的地址、第二hPCF为终端制定的策略等。
下面结合图1(c),对该应用场景进行说明。如图1(c)所示,为本申请适用的又一种可能的网络架构示意图。该网络架构包括第一AMF、第一vPCF和第二hPCF,可选的,该网络架构还可以包括第二AMF。其中,第一AMF和第一vPCF位于同一个vPLMN(称为第一vPLMN),第二AMF和第二hPCF位于hPLMN。
基于该网络架构的场景是:发生AMF重选前,终端使用的AMF是第二AMF,终端在归属 地使用的PCF是第二hPCF。发生AMF重选后,终端使用的AMF是第一AMF,进一步的,在一个情形中,该第一AMF选择的归属地的PCF是该第二hPCF,且该第一AMF选择的拜访地的PCF是第一vPCF(也可以称为New vPCF,图中未示出),在另一个情形中,该第一AMF选择的归属地的PCF是第一hPCF(也可以称为New hPCF,图中未示出),且该第一AMF选择的拜访地的PCF是第一vPCF。
下面分别结合图1(a)、图1(b)、图1(c),对不同的应用场景下的策略控制方法分别进行说明。需要说明的是,本申请各实施例中的消息的名称只是一个示例,名称对消息本身不构成限定。在5G网络以及未来其它的网络中,本申请各实施例中的消息也可以是其他的名字,本申请实施例对此不作具体限定。
如图2所示,为本申请提供的一种策略控制方法,该方法适用于图1(a)所示的网络架构及应用场景。该方法包括以下步骤:
步骤201,第一AMF向第二AMF发送请求消息。相应的,第二AMF可以接收到该请求消息。该请求消息可以用于请求获取终端的上下文。
需要说明的是,该步骤201为可选步骤,实际应用中也可以不执行该步骤。
步骤202,第二AMF向第一AMF发送终端的上下文。相应的,第一AMF可以接收到终端的上下文。
其中,第二AMF向第一AMF发送的终端的上下文中包括第二策略关联(Policy Association)的信息,所述第二策略关联的信息包括第二vPCF的标识。该第二vPCF是与第二AMF在拜访地建立关联的PCF。为方便说明,后续将该第二vPCF称为第二AMF使用的PCF,或者将第二vPCF称为第二AMF选择的PCF,这里做统一说明。
需要说明的是,由于第一AMF与第二AMF是在同一个PLMN中,因此第二AMF才会将第二vPCF的标识携带于策略关联的信息中发送给第一AMF。若第二AMF确定第一AMF与第二AMF不在同一个PLMN中,则第二AMF可以不向第一AMF发送第二vPCF的标识,因为第一AMF只能使用同一个PLMN中的vPCF。
可选的,第二AMF向第一AMF发送的终端的上下文中的第二策略关联的信息中还可以包括第二hPCF的标识。
步骤203,第二AMF启动定时器。
该定时器也可以称为第一定时器。
该定时器对应一个设定的时长,时长的具体值可根据实际需要而设定或从其他网元,譬如从统一数据管理(unified data managemetn,UDM)网元中获取。该时长一般可以保证在正常情况下,第二AMF能在超时前接收到第二vPCF的通知消息。
第二AMF若在定时器超时前,接收到第二vPCF发送的第一通知消息,则定时器停止计时。该第一通知消息用于通知第二AMF:第二vPCF已接收到用于请求更新第二策略关联的消息,具体的,该用于请求更新第二策略关联的消息可以是第一AMF发送的更新请求消息。
若第二AMF在定时器超时前始终未接收到第二vPCF发送的第一通知消息,则定时器将会超时。
上述步骤202中,第一AMF在接收到第二AMF发送的终端的上下文后,从中获取到第二策略关联的信息,且第二策略关联的信息中包括第二vPCF的标识,该第二vPCF即为第 二AMF使用的vPCF。接着,第一AMF决定是否使用该第二vPCF。
在一种情形中,第一AMF决定使用该第二vPCF,即第一AMF选择的vPCF与第二AMF使用的vPCF是同一个vPCF。若第一AMF决定使用该第二vPCF,则执行以下步骤204-步骤209。
在又一情形中,第一AMF决定不使用该第二vPCF,即第一AMF重新选择一个不同于第二AMF使用的第二vPCF,比如重新选择一个第一vPCF。若第一AMF决定不使用该第二vPCF,则执行以下步骤210-步骤216。
步骤204,第一AMF向第二vPCF发送更新请求消息。相应的,第二vPCF可以接收到该更新请求消息。该更新请求消息包括第一AMF的信息。
该更新请求消息也可以称为第一更新请求消息。该更新请求消息用于请求第二vPCF将第二策略关联的信息中的第二AMF的信息更新为第一AMF的信息。
作为一种实现方式,这里的第一AMF的信息可以包括以下信息中的部分或全部:第一AMF的标识、第一AMF的用于接收策略更新的地址、终端当前的签约策略、或终端当前的接入信息。其中,终端当前的签约策略可以包括服务区限制策略或无线频谱选择策略等签约策略。终端当前的接入信息可以包括接入类型、终端的时区、或服务网络等信息。
作为一种实现方式,这里的第二AMF的信息可以包括以下信息中的部分或全部:第二AMF的标识、第二AMF的用于接收策略更新的地址、终端的签约策略、或终端的接入信息。
步骤205,第二vPCF更新第二策略关联的信息。
具体的,第二vPCF根据接收到的更新请求消息,将第二策略关联的信息中的第二AMF的信息更新为第一AMF的信息。
在又一种实现方式中,更新请求消息中还可以包括AMF改变的指示。该AMF改变的指示用于触发第二vPCF更新第二策略关联的信息。即,第二vPCF接收到更新请求消息,并根据更新请求消息中的AMF改变的指示,将第二策略关联的信息中的第二AMF的信息更新为第一AMF的信息。
第二vPCF更新第二策略关联的信息,比如,可以包括以下四种操作中的至少一种操作,即:可以包括其中的一种操作,或者可以包括其中的两种操作,或者可以包括其中的三种操作,或者可以包括其中的四种操作:
将第二AMF的标识更新为第一AMF的标识,将第二AMF的用于接收策略更新的地址更新为第一AMF的用于接收策略更新的地址,将终端的签约策略更新为终端当前的签约策略,以及将终端的接入信息更新为终端当前的接入信息。
作为又一种实现方式,上述步骤202中,第一AMF获取到的第二策略关联的信息中还可以包括第二资源的标识,第二资源为第二vPCF创建的第二策略关联对应的资源。则上述步骤204的更新请求消息中还可以携带该第二资源的标识,且更新请求消息具体用于请求将第二资源中的第二策略关联的信息中的第二AMF的信息更新为第一AMF的信息。进而,上述步骤205中,第二vPCF更新第二策略关联的信息的具体方法为:第二vPCF根据第二资源的标识,将第二资源中的第二策略关联的信息中的第二AMF的信息更新为第一AMF的信息。
作为又一种实现方式,上述步骤202中,第一AMF获取到的第二策略关联的信息具体可以包括第二资源的信息,第二资源的信息包括第二资源的标识和第二vPCF的标识,即第 二资源的信息是作为一个整体,第一AMF不能从第二资源的信息中单独获取到第二资源的标识或第二vPCF的标识,但第二资源的信息中包括了第二资源的标识和第二vPCF的标识。其中,第二资源为第二vPCF创建的第二策略关联对应的资源。则上述步骤204的更新请求消息中还可以携带该第二资源的资源,且更新请求消息具体用于请求将第二资源中的第二策略关联的信息中的第二AMF的信息更新为第一AMF的信息。进而,上述步骤205中,第二vPCF更新第二策略关联的信息的具体方法为:第二vPCF根据第二资源的信息,将第二资源中的第二策略关联的信息中的第二AMF的信息更新为第一AMF的信息。
作为一种实现方式,第二vPCF更新第二策略关联的信息之后,第二vPCF还可以根据更新后的策略关联的信息更新之前为终端制定的策略。进一步的,第二vPCF更新了为终端制定的策略后,还可以向第二AMF的用于接收策略更新的地址发送更新后的策略。
进一步,在该实施例的应用场景中,由于第一AMF、第二AMF、第二vPCF均位于同一个vPLMN,若在该场景中,若第一AMF选择了第二vPCF,则默认第一AMF同时也选择了第二hPCF,则该上述步骤205之后,还可以包括以下步骤206-步骤208。
步骤206,第二vPCF向第二hPCF发送更新请求消息。相应的,第二hPCF可以接收到该更新请求消息。
该更新请求消息也可以称为第二更新请求消息。该更新请求消息用于请求第二hPCF更新第一策略关联的信息。
当第一AMF自步骤204中的终端的签约策略或终端的接入信息的改变满足第二hPCF之前下发给第二vPCF的策略控制请求触发(Policy Control Request Trigger)时,则第二vPCF向第二hPCF发送更新请求消息(即执行步骤206),更新请求消息中包括终端的签约策略或终端的接入信息;否则,第二vPCF不需要发送更新请求消息(即不执行步骤206)。
步骤207,第二hPCF更新第一策略关联的信息。
比如,第二hPCF可以做以下更新操作:更新终端的策略、更新终端的接入信息等。
步骤208,第二hPCF向第二vPCF发送通知消息,相应的,第二vPCF可以接收到该通知消息。
该通知消息用于通知第二vPCF:第二hPCF接收到了用于请求更新第一策略关联的消息,或者可以理解为,该通知消息用于通知第二vPCF:第二hPCF接收到了上述该第二更新请求消息。或者可以理解为,该通知消息用于通知第二vPCF:第二AMF选择了第二hPCF。
该步骤为可选步骤,只有执行了步骤206,则才执行该步骤。
步骤209,第二vPCF向第二AMF发送第一通知消息。相应的,第二AMF可以接收到该第一通知消息。
该第一通知消息用于通知第二AMF:第二vPCF接收到了用于请求更新第二策略关联的消息,即第二vPCF接收到了上述步骤204的更新请求消息。
第二AMF若在定时器超时前,接收到第二vPCF发送的第一通知消息,则定时器停止计时。若第二AMF在定时器超时前始终未接收到第二vPCF发送的第一通知消息,则定时器将会超时。
需要说明的是,第二AMF不会向第二vPCF发送用于请求第二vPCF删除第二策略关联的删除请求消息的前提是,第二AMF接收到第一通知消息,且第二AMF上的定时器未超时。 在一种情形下,若执行上述步骤204-步骤209,但定时器超时后第二AMF才接收到第一通知消息,则第二AMF仍然会向PCF发送用于请求第二vPCF删除第二策略关联的删除请求消息,即会继续执行以下步骤211。并且,由于PCF在接收到该删除请求消息之前已经接收到更新请求消息,因此第二vPCF在接收到该删除请求消息后,可以忽略该删除请求消息。
通过上述步骤201-步骤209,在AMF的重选的场景中,当第二vPCF接收到第一AMF发送的更新请求消息后,可以根据该更新请求消息,将第二vPCF中存储的第二策略关联的信息中的第二AMF的信息更新为第一AMF的信息,其中,第一AMF的信息是携带于更新请求消息中的。由于第二vPCF不需要删除终端第二策略关联的信息中的第二AMF的信息,以及不需要重新建立与第一AMF的策略关联,而是直接将第二策略关联的信息中的第二AMF的信息更新为第一AMF的信息,这样不需要为第一AMF在第二vPCF上创建新的资源,同时PCF也不需要和统一数据库(unified data repository,UDR)交互以获取终端的签约数据和之前为终端制定的策略,因而可以节约策略控制的资源开销。
流程结束。
若第一AMF决定不使用该第二vPCF,则第一AMF会选择其他vPCF和其他hPCF,比如称为第一vPCF和第一hPCF。第一AMF向第一vPCF发送请求消息,该请求消息可以包括终端的标识、第一AMF的标识、第一AMF的用于接收策略更新的通知地址和第一hPCF的标识,该请求消息用于请求创建第一AMF与第一vPCF之间的策略关联的信息,第一vPCF进一步向第一hPCF发送请求消息,消息中携带第一vPCF的标识、第一vPCF的接收策略更新的通知地址。具体的,第一vPCF可以保存第一AMF在请求消息中携带的信息,第一hPCF保存第一vPCF在请求消息中携带的信息。第一hPCF与UDR交互获取终端的签约数据以及第一hPCF为终端制定策略,并制定相应的策略提供给第一vPCF,第一vPCF进一步将策略提供给第一AMF。第一vPCF还可以根据本地策略为终端制定策略并提供给第一AMF。第一AMF执行相应的策略,进一步的,第一AMF还可以将策略提供给终端执行。
第一AMF在向第一vPCF发送请求消息之后,进一步的,还可以执行以下步骤210-步骤216。
步骤210,第二AMF确定定时器超时。
由于第一AMF决定不使用第二vPCF,因此不会执行步骤204步骤-步骤209,因而第二AMF在定时器超时前,不会接收到上述步骤209中的第一通知消息,因而定时器会超时。
在另外一种情形中,有可能第一AMF决定使用上述第二vPCF,并执行上述步骤204步骤-步骤209,但是第二AMF接收到步骤209的第一通知消息之前,定时器已经超时了,该情形下,第二AMF也会确定定时器超时。
步骤211,第二AMF向第二vPCF发送删除请求消息,相应的,第二vPCF可以接收到该删除请求消息。
若第二AMF在定时器超时前未接收到来自第二vPCF的第一通知消息,或者是,第二AMF在定时器超时后才接收到第二vPCF发送的第一通知消息,则第二AMF向第二vPCF发送删除请求消息,该删除请求消息也可以称为第一删除请求消息。该删除请求消息用于请求第二vPCF删除第二策略关联,以及用于指示第二vPCF请求第二hPCF删除第一策略关联。
作为一种实现方式,该删除请求消息包括第一删除指示,第一删除指示用于指示第二 vPCF请求第二hPCF删除第一策略关联。
步骤212,第二vPCF删除第二策略关联的信息。
比如,第二vPCF可以删除第二策略关联的信息中的第二AMF的信息。
步骤213,第二vPCF向第二hPCF发送删除请求消息,相应的,第二hPCF可以接收到该删除请求消息。
该删除请求消息用于请求第二hPCF删除第一策略关联。具体的,用于该删除请求消息用于请求第二hPCF删除第一策略关联的信息。
步骤214,第二hPCF删除第一策略关联的信息。
比如,第二hPCF可以删除第一策略关联的信息中的第二vPCF的信息。
步骤215,第二hPCF向第二vPCF发送删除通知消息,相应的,第二vPCF可以接收到该删除通知消息。该删除通知消息用于通知第一策略的信息已经删除。
该步骤为可选步骤。
步骤216,第二vPCF向第二AMF发送删除通知消息,相应的,第二AMF可以接收到该删除通知消息。该删除通知消息用于通知第二策略的信息已经删除。
该步骤为可选步骤。
通过上述步骤201-步骤203,以及步骤210-步骤216。当第一AMF确定与第二AMF使用不同的vPCF时,则第一AMF不会向第二vPCF发送更新请求消息,从而第二vPCF不会向第二AMF发送第一通知消息。进而,第二AMF可以请求第二vPCF删除第二策略关联的信息,以及第二vPCF可以请求第二hPCF删除第一策略关联的信息。由于删除了第二vPCF不再使用的第二策略关联的信息,以及删除了第二hPCF不再使用的第一策略关联的信息,因而有助于避免第二vPCF和第二hPCF发生错误的策略决策。
需要说明的是,图2所示的实施例仅示出了AMF重选流程中的部分步骤,对于AMF重选的其它步骤,可参考现有技术相关描述,比如可以参考3GPP TS 23.502,这里不再赘述。
如图3所示,为本申请提供的又一种策略控制方法,该方法也适用于图1(a)所示的网络架构及应用场景。该方法包括以下步骤:
步骤301-步骤302,与图2所示的实施例的步骤201-步骤202相同,可参考上述描述。
步骤303,第二AMF向第二vPCF发送删除请求消息,相应的,第二vPCF可以接收到该删除请求消息。
该删除请求消息也可以称为第二删除请求消息。
该删除请求消息用于请求删除第二策略关联。具体的,该删除请求消息用于请求第二vPCF删除第二策略关联的信息,包括删除第二策略关联的信息中的第二AMF的信息。在一种实现方式中,该删除请求消息具体可以用于指示第二vPCF在未接收到用于请求更新第二策略关联的消息时删除第二策略关联。
步骤304,第二vPCF启动定时器。
在上述步骤303中,第二vPCF接收到删除请求消息后,可以不立即删除第二策略关联,而是启动定时器。
作为一种实现方式,第二vPCF在接收到删除请求消息后,根据该删除请求消息,启动 定时器。
作为又一种实现方式,上述步骤303的删除请求消息中还可以包括删除指示,该删除指示用于指示所述第二vPCF在未接收到用于请求更新第二策略关联的消息时删除第二策略关联。即指示第二vPCF在未接收到更新请求消息时删除第二策略关联。当PCF接收到删除请求消息后,可以根据删除请求消息中的删除指示,启动定时器。
这里的删除指示,是一种条件删除指示,即用于指示第二vPCF:若未接收到用于请求更新第二策略关联的消息,如上述更新请求消息,则删除第二策略关联。在实际应用中,该删除指示还可以使用以下任一实现方式:比如,删除指示可以用于指示若第二vPCF接收到第一AMF发送的用于请求更新第二策略关联的消息则不删除第二策略关联。再比如,删除指示还可以用于指示第二vPCF若接收到第一AMF发送的用于请求更新第二策略关联的消息则不删除第二策略关联,第二vPCF若未接收到用于请求更新第二策略关联的消息则删除第二策略关联。其中,删除第二策略关联,具体指的是删除第二策略关联的信息。
作为又一种实现方式,上述步骤303的删除请求消息中还可以包括AMF改变的指示,该AMF改变的指示用于通知第二vPCF:AMF发生改变,或者理解为,AMF改变的指示用于指示该删除请求消息是由AMF的改变触发的。当PCF接收到删除请求消息后,可以根据删除请求消息中的AMF改变的指示,启动定时器。
步骤305,第二vPCF向第二hPCF发送删除请求消息,相应的,第二hPCF可以接收到该删除请求消息。
该删除请求消息也可以称为第三删除请求消息。
该删除请求消息用于请求删除第一策略关联。具体的,该删除请求消息用于请求第二hPCF删除第一策略关联,包括删除第一策略关联的信息,比如可以删除第一策略相关的所有信息。在一种实现方式中,该删除请求消息具体可以用于指示第二hPCF在未接收到用于请求更新第一策略关联的消息时删除第一策略关联。
步骤306,第二hPCF启动定时器。
在上述步骤305中,第二hPCF接收到删除请求消息后,可以不立即删除第一策略关联,而是启动定时器。
作为一种实现方式,第二hPCF在接收到删除请求消息后,根据该删除请求消息,启动定时器。
作为又一种实现方式,上述步骤305的删除请求消息中还可以包括删除指示,该删除指示用于指示所述第二hPCF在未接收到用于请求更新第一策略关联的消息时删除第一策略关联。即指示第二hPCF在未接收到更新请求消息时删除第一策略关联。当第二hPCF接收到删除请求消息后,可以根据删除请求消息中的删除指示,启动定时器。
这里的删除指示,是一种条件删除指示,即用于指示第二hPCF:若未接收到用于请求更新第一策略关联的消息,如上述更新请求消息,则删除第一策略关联。在实际应用中,该删除指示还可以使用以下任一实现方式:比如,删除指示可以用于指示若第二hPCF接收到用于请求更新第一策略关联的消息则不删除第一策略关联。再比如,删除指示还可以用于指示第二hPCF若接收到用于请求更新第一策略关联的消息则不删除第一策略关联,第二hPCF若未接收到用于请求更新第一策略关联的消息则删除第二策略关联。其中,删除第一 策略关联,具体指的是删除第一策略关联的信息。
作为又一种实现方式,上述步骤305的删除请求消息中还可以包括AMF改变的指示,该AMF改变的指示用于通知第二hPCF:AMF发生改变,或者理解为,AMF改变的指示用于指示该删除请求消息是由AMF的改变触发的。当第二hPCF接收到删除请求消息后,可以根据删除请求消息中的AMF改变的指示,启动定时器。
上述步骤302中,第一AMF在接收到第二AMF发送的终端的上下文后,从中获取到第二策略关联的信息,且第二策略关联的信息中包括第二vPCF的标识,该第二vPCF即为第二AMF使用的vPCF。接着,第一AMF决定是否使用该第二vPCF。
在一种情形中,第一AMF决定使用该第二vPCF,即第一AMF选择的第二vPCF与第二AMF使用的第二vPCF是同一个vPCF。若第一AMF决定使用该第二vPCF,则执行以下步骤307-步骤310。
在又一情形中,第一AMF决定不使用该第二vPCF,即第一AMF重新选择一个不同于第二AMF使用的第二vPCF,比如重新选择一个第一vPCF,以及还需要重新选择一个hPCF,比如选择第一hPCF。若第一AMF决定不使用该第二vPCF,则执行以下步骤311-步骤316。
步骤307-步骤310,同图2所示的实施例中的步骤204-步骤207,可参考前述描述,这里不再赘述。
需要说明的是,第二vPCF在步骤307中接收到更新请求消息时,若定时器未超时,则执行步骤308-步骤310。若第二vPCF在步骤307中接收到更新请求消息时,定时器已经超时,则不执行步骤308-步骤310,而是执行步骤311-步骤316。
通过上述步骤301-步骤310,在AMF的重选的场景中,当第二vPCF接收到第一AMF发送的更新请求消息后,可以根据该更新请求消息,将第二vPCF中存储的第二策略关联的信息中的第二AMF的信息更新为第一AMF的信息,其中,第一AMF的信息是携带于更新请求消息中的。可选的,第二vPCF进一步向第二hPCF发送更新请求新消息,可以根据该更新请求消息,将第二hPCF中存储的第一策略关联的信息根据携带于更新请求消息中的信息进行更新。由于第二vPCF不需要删除终端第二策略关联的信息中的第二AMF的信息,以及不需要重新建立与第一AMF的策略关联,而是直接将第二策略关联的信息中的第二AMF的信息更新为第一AMF的信息,这样不需要为第一AMF在第二vPCF上创建新的资源。类似的,第二hPCF也不需要创建新的资源,同时第二hPCF也不需要和UDR交互以获取终端的签约数据和之前为终端制定的策略,因而可以节约策略控制的资源开销。
流程结束。
若第一AMF决定不使用该第二vPCF,则第一AMF选择其他的vPCF(比如称为第一vPCF)和其他的hPCF(比如称为第一hPCF)。第一AMF向第一vPCF发送请求消息,该请求消息可以包括终端的标识、第一AMF的标识、第一AMF的接收策略更新的通知地址和第一hPCF,该请求消息用于请求创建第一AMF与第一vPCF之间的策略关联的信息,第一vPCF进一步向第一hPCF发送请求消息,消息中携带第一vPCF的标识、第一vPCF的接收策略更新的通知地址。具体的,第一vPCF可以保存第一AMF在请求消息中携带的信息,第一hPCF包括第一vPCF在请求消息中携带的信息。第一hPCF与UDR交互获取终端的签约数据以及第hvPCF为终端制定策略,并制定相应的策略提供给第一vPCF,第一vPCF进一步将策略提供给第一 AMF。第一vPCF还可以根据本地策略,为终端制定策略,提供给第一AMF。第一AMF执行相应的策略,进一步的,第一AMF还可以将策略提供给终端执行。
第一AMF在向第一vPCF发送请求消息之后,进一步的,还可以执行以下步骤311-步骤316。
步骤311,第二vPCF确定定时器超时。
由于第一AMF决定不使用第二vPCF,因此不会执行步骤307-步骤310,因而第二vPCF在定时器超时前,不会接收到上述步骤307中的更新请求消息,因而定时器会超时。
在另外一种情形中,有可能第一AMF决定使用上述第二vPCF,并执行上述步骤307,但是第二vPCF接收到步骤307的更新请求消息之前,定时器已经超时了,该情形下,第二vPCF也会确定定时器超时。
步骤312,第二vPCF删除第二策略关联的信息。
步骤313,第二hPCF确定定时器超时。
步骤314,第二hPCF删除第一策略关联的信息。
通过上述步骤301-步骤306,以及步骤311-步骤314。当第一AMF确定与第二AMF使用不同的vPCF时,则第一AMF不会向第二vPCF发送更新请求消息,因而第二vPCF上的定时器会超时。进而,第二vPCF可以删除第二策略关联的信息,类似的第二hPCF上的定时器也会超时,因此第二hPCF删除第一策略关联的信息。由于删除了第二vPCF不再使用的第二策略关联的信息,以及删除了第二hPCF不再使用的第一策略关联的信息,因而有助于避免第二vPCF和第二hPCF发生错误的策略决策。
需要说明的是,图3所示的实施例仅示出了AMF重选流程中的部分步骤,对于AMF重选的其它步骤,可参考现有技术相关描述,比如可以参考3GPP TS 23.502,这里不再赘述。
如图4所示,为本申请提供的一种策略控制方法,该方法适用于图1(b)所示的网络架构及应用场景。该方法包括以下步骤:
步骤401,第一AMF向第二AMF发送请求消息。相应的,第二AMF可以接收到该请求消息。该请求消息可以用于请求获取终端的上下文。
需要说明的是,该步骤401为可选步骤,实际应用中也可以不执行该步骤。
步骤402,第二AMF向第一AMF发送终端的上下文。相应的,第一AMF可以接收到终端的上下文。
其中,第二AMF向第一AMF发送的终端的上下文中包括第一策略关联(Policy Association)的信息,所述第一策略关联的信息包括第二hPCF的标识。该第二hPCF是与第二vPCF在拜访地建立关联的PCF。
需要说明的是,由于第一AMF与第二AMF是在不同的PLMN中,因此第二AMF不会将第二vPCF的标识携带于策略关联的信息中发送给第一AMF,因为第一AMF只有使用同一个VPLMN的vPCF。
步骤403,第二AMF启动定时器。
该定时器也可以称为第一定时器。
该定时器对应一个设定的时长,时长的具体值可根据实际需要而设定或从其他网元, 譬如从UDM网元中获取。该时长一般可以保证在正常情况下,第二AMF能在超时前接收到第二vPCF的通知消息(也可以认为是来自第二hPCF的通知消息)。。
第二AMF若在定时器超时前,接收到第二vPCF发送的第一通知消息,则定时器停止计时。该第一通知消息用于通知第二AMF:第二hPCF已接收到用于请求更新第一策略关联的消息。
若第二AMF在定时器超时前始终未接收到第二vPCF发送的第一通知消息,则定时器将会超时。
上述步骤402中,第一AMF在接收到第二AMF发送的终端的上下文后,从中获取到第一策略关联的信息,且第一策略关联的信息中包括第二hPCF的标识,该第二hPCF即为第二AMF使用的hPCF。接着,第一AMF决定是否使用该第二hPCF。
在一种情形中,第一AMF决定使用该第二hPCF,具体的第一AMF选择的vPCF(可以称为第一vPCF)与第二AMF使用的第二vPCF是不同的vPCF,但第一AMF选择的hPCF与第二AMF使用的hPCF是同一个hPCF,即第二hPCF。若第一AMF决定使用第一vPCF和第二hPCF,则执行以下步骤404-步骤411。
在又一种情形中,第一AMF决定不使用该第二hPCF,具体的第一AMF选择的vPCF(可以称为第一vPCF)与第二AMF使用的第二vPCF是不同的vPCF,并且第一AMF选择的hPCF(可以称为第一hPCF)与第二AMF使用的hPCF也不是同一个hPCF。若第一AMF决定使用第一vPCF和第一hPCF,则执行以下步骤404-步骤405,以及执行步骤412-步骤416。
步骤404,第一AMF向第一vPCF发送建立请求消息。相应的,第一vPCF可以接收到该建立请求消息。该建立请求消息包括更新信息和第一AMF的信息。更新信息包括第二hPCF的标识,更新信息用于指示第一vPCF向第二hPCF发送更新请求消息。该建立请求消息用于请求第一vPCF根据第一AMF的信息为终端创建第三策略关联。
下面介绍该更新信息的三种具体实现方法。
实现方法一,上述步骤402的终端的上下文的第一策略的信息包括第一资源的信息,该第一资源的信息包括第二hPCF的标识和第一资源的标识,第一资源为第一策略关联对应的资源,则更新信息包括第一资源的信息,更新信息用于指示第一vPCF向第二hPCF发送更新请求消息具体为:更新信息中的第一资源的信息用于指示第一vPCF向第二hPCF发送更新请求消息。
该实现方法中,第一AMF从第二AMF接收到的是第一资源的信息,该第一资源的信息是作为一个整体的,该第一资源的信息中包含了第二hPCF的标识和第一资源的标识,但不是单独的第二hPCF的标识和第一资源的标识。第一AMF向第一vPCF发送的建立请求消息中携带的更新信息具体包括该第一资源的信息。从而,第一vPCF可以根据更新信息中的第一资源的信息,向第二hPCF发送更新请求消息。
实现方法二,上述步骤402的终端的上下文的第一策略的信息包括第一资源的标识和第二hPCF的标识,该第一资源的标识用于标识第一资源。则更新信息包括第一资源的标识和第二hPCF的标识,更新信息用于指示第一vPCF向第二hPCF发送更新请求消息具体为:更新信息中的第一资源的标识和第二hPCF的标识用于指示第一vPCF向第二hPCF发送更新请求消息。
该实现方法中,第一AMF从第二AMF接收到的是第一资源的标识和第二hPCF的标识,即第一AMF可以分别获取到第一资源的标识和第二hPCF的标识。第一AMF向第一vPCF发送的建立请求消息中携带的更新信息具体包括该第一资源的标识和第二hPCF的标识。从而,第一vPCF可以根据更新信息中的第一资源的标识和第二hPCF的标识,向第二hPCF发送更新请求消息。
实现方法三,上述步骤402的终端的上下文的第一策略的信息包括第二hPCF的标识,更新信息包括指示信息和第二hPCF的标识,更新信息用于指示第一vPCF向第二hPCF发送更新请求消息具体为:更新信息中的指示信息和第二hPCF的标识用于指示第一vPCF向第二hPCF发送更新请求消息。
该实现方法中,第一AMF从第二AMF接收到的是第二hPCF的标识。第一AMF向第一vPCF发送的建立请求消息中携带的更新信息具体包括该指示信息和第二hPCF的标识。从而,第一vPCF可以根据更新信息中的指示信息和第二hPCF的标识,向第二hPCF发送更新请求消息。作为一种具体实现方式,该指示信息例如可以是1比特的信息等。
步骤405,第一vPCF保存接收到的信息,并根据第一AMF的信息为终端创建第三策略关联。
作为一种实现方式,这里的第一AMF的信息可以包括以下信息中的部分或全部:第一AMF的标识、第一AMF的用于接收策略更新的地址、终端当前的签约策略、或终端当前的接入信息。其中,终端当前的签约策略可以包括服务区限制策略或无线频谱选择策略等签约策略。终端当前的接入信息可以包括接入类型、终端的时区、或服务网络等信息。
步骤406,第一vPCF根据更新信息向第二hPCF发送更新请求消息,相应的,第二hPCF可以接收到该更新请求消息。
该更新请求消息包括第一vPCF的信息,更新请求消息用于请求第二hPCF将第一策略关联的信息中的第二vPCF的信息更新为第一vPCF的信息。
作为一种实现方式,这里的第一vPCF的信息可以包括第一vPCF的标识、第一vPCF用于接收策略更新的通知地址、终端通过第一AMF接入时的签约和终端的接入信息。
作为一种实现方式,这里的第二vPCF的信息可以包括第二vPCF的标识、第二vPCF用于接收策略更新的通知地址、终端通过第二AMF接入时的签约和终端的接入信息。
步骤407,第二hPCF更新第一策略关联的信息。
具体的,第二hPCF根据接收到的更新请求消息,将第一策略关联的信息中的第二vPCF的信息更新为第一vPCF的信息。
在又一种实现方式中,更新请求消息中还可以包括AMF改变的指示。该AMF改变的指示用于触发第二hPCF更新第一策略关联的信息。即,第二hPCF接收到更新请求消息,并根据更新请求消息中的AMF改变的指示,将第一策略关联的信息中的第二vPCF的信息更新为第一vPCF的信息。
第二hPCF更新第一策略关联的信息,比如,可以包括以下四种操作中的至少一种操作,即:可以包括其中的一种操作,或者可以包括其中的两种操作,或者可以包括其中的三种操作,或者可以包括其中的四种操作:
将第二vPCF的标识更新为第一vPCF的标识,将第二vPCF的用于接收策略更新的地址 更新为第一vPCF的用于接收策略更新的地址,将终端的签约策略更新为终端当前的签约策略,以及将终端的接入信息更新为终端当前的接入信息。
作为又一种实现方式,上述步骤402中,第一AMF获取到的第一策略关联的信息中还可以包括第一资源的标识,第一资源为第二hPCF创建的第一策略关联对应的资源。则上述步骤404的建立请求消息中还可以携带该第一资源的标识。进而,上述步骤506中的更新请求消息可以携带该第一资源的标识。进而,上述步骤407中,第二hPCF更新第一策略关联的信息的具体方法为:第二hPCF根据第一资源的标识,将第一资源中的第一策略关联的信息中的第二vPCF的信息更新为第一vPCF的信息。
作为又一种实现方式,上述步骤402中,第一AMF获取到的第一策略关联的信息具体可以包括第一资源的信息,第一资源的信息包括第一资源的标识和第二hPCF的标识,即第一资源的信息是作为一个整体,第一AMF不能从第一资源的信息中单独获取到第一资源的标识或第一hPCF的标识,但第一资源的信息中包括了第一资源的标识和第二hPCF的标识。其中,第一资源为第二hPCF创建的第一策略关联对应的资源。则上述步骤406的更新请求消息中还可以携带该第一资源的资源,且更新请求消息具体用于请求将第一资源中的第一策略关联的信息中的第二vPCF的信息更新为第一vPCF的信息。进而,上述步骤407中,第二hPCF更新第一策略关联的信息的具体方法为:第二hPCF根据第一资源的信息,将第一资源中的第一策略关联的信息中的第二vPCF的信息更新为第一vPCF的信息。
作为一种实现方式,第二hPCF更新第一策略关联的信息之后,第二hPCF还可以根据更新后的策略关联的信息更新之前为终端制定的策略。进一步的,第二hPCF更新了为终端制定的策略后,还可以向第二vPCF的用于接收策略更新的地址发送更新后的策略。
步骤408,第二hPCF向第二vPCF发送通知消息,相应的,第二vPCF可以接收到该通知消息。
该通知消息用于通知第二vPCF:第二hPCF接收到了用于请求更新第一策略关联的消息,或者可以理解为,该通知消息用于通知第二vPCF:第二hPCF接收到了上述步骤406中的更新请求消息。或者可以理解为,该通知消息用于通知第二vPCF:第二AMF选择了第二hPCF。
通过上述步骤401-步骤408,在AMF的重选的场景中,当第二hPCF接收到更新请求消息后,可以根据该更新请求消息,将第二hPCF中存储的第一策略关联的信息中的第二vPCF的信息更新为第一vPCF的信息。由于第二hPCF不需要删除第一策略关联的信息中的第二vPCF的信息,以及不需要重新建立与第一vPCF的策略关联,而是直接将第一策略关联的信息中的第二vPCF的信息更新为第一vPCF的信息,这样不需要为第一vPCF在第二hPCF上创建新的资源,同时第二hPCF也不需要和UDR交互以获取终端的签约数据和之前为终端制定的策略,因而可以节约策略控制的资源开销。
步骤409,第二vPCF向第二AMF发送第一通知消息,相应的,第二AMF可以接收到该第一通知消息。
该第一通知消息用于通知第二AMF:第二hPCF接收到了用于请求更新第一策略关联的消息,或者可以理解为,该第一通知消息用于通知第二AMF:第二hPCF接收到了上述步骤406中的更新请求消息。
步骤410,第二AMF在定时器超时前接收到来自第二vPCF的第一通知消息,则第二AMF 向第二vPCF发送删除请求消息,该删除请求消息用于请求第二vPCF删除第二策略关联。
该删除请求消息可以称为第二删除请求消息。
可选的,该删除请求消息包括第二删除指示,第二删除指示用于指示第二vPCF不向第二hPCF请求删除第一策略关联。
步骤411,第二vPCF删除第二策略关联的信息。
比如,第二vPCF可以删除第二策略关联的信息中的第二AMF的信息。
步骤412,第二AMF确定定时器超时。
由于第一AMF决定不使用第二hPCF,因此第二AMF在定时器超时前,不会接收到第二vPCF发送的第一通知消息,该第一通知消息用于通知第二AMF:第二hPCF接收到了用于请求更新第一策略关联的消息。因而定时器会超时。
步骤413,第二AMF向第二vPCF发送删除请求消息,相应的,第二vPCF可以接收到该删除请求消息。
由于第二AMF在定时器超时前未接收到来自第二vPCF的第一通知消息,则第二AMF向第二vPCF发送删除请求消息,该删除请求消息也可以称为第一删除请求消息。该删除请求消息用于请求第二vPCF删除第二策略关联,以及用于指示第二vPCF请求第二hPCF删除第一策略关联。
作为一种实现方式,该删除请求消息包括第一删除指示,第一删除指示用于指示第二vPCF请求第二hPCF删除第一策略关联。
步骤414,第二vPCF删除第二策略关联的信息。
比如,第二vPCF可以删除第二策略关联的信息中的第二AMF的信息。
步骤415,第二vPCF向第二hPCF发送删除请求消息,相应的,第二hPCF可以接收到该删除请求消息。
该删除请求消息用于请求第二hPCF删除第一策略关联。
步骤416,第二hPCF删除第一策略关联的信息。
比如,第二hPCF可以删除第一策略关联的信息中的第二vPCF的信息。
通过上述步骤401-步骤405,以及步骤412-步骤416。当第一AMF确定与第二AMF使用不同的hPCF时,则第一vPCF不会向第二hPCF发送更新请求消息,从而第二vPCF不会向第二AMF发送第一通知消息。进而,第二AMF可以请求第二vPCF删除第二策略关联的信息,以及第二vPCF可以请求第二hPCF删除第一策略关联的信息。由于删除了第二vPCF不再使用的第二策略关联的信息,以及删除了第二hPCF不再使用的第一策略关联的信息,因而有助于避免第二vPCF和第二hPCF发生错误的策略决策。
需要说明的是,图4所示的实施例仅示出了AMF重选流程中的部分步骤,对于AMF重选的其它步骤,可参考现有技术相关描述,比如可以参考3GPP TS 23.502,这里不再赘述。
如图5所示,为本申请提供的又一种策略控制方法,该方法也适用于图1(b)所示的网络架构及应用场景。该方法包括以下步骤:
步骤501,第一AMF向第二AMF发送请求消息。相应的,第二AMF可以接收到该请求消息。该请求消息可以用于请求获取终端的上下文。
需要说明的是,该步骤501为可选步骤,实际应用中也可以不执行该步骤。
步骤502,第二AMF向第一AMF发送终端的上下文。相应的,第一AMF可以接收到终端的上下文。
其中,第二AMF向第一AMF发送的终端的上下文中包括第一策略关联(Policy Association)的信息,所述第一策略关联的信息包括第二hPCF的标识。该第二hPCF是与第二vPCF在拜访地建立关联的PCF。
需要说明的是,由于第一AMF与第二AMF是在不同的PLMN中,因此第二AMF不会将第二vPCF的标识携带于策略关联的信息中发送给第一AMF。也可以理解为,第二AMF不允许第一AMF使用第二vPCF。
步骤503,第二AMF向第二vPCF发送删除请求消息,相应的,第二vPCF可以接收到该删除请求消息。
该删除请求消息也可以称为第三删除请求消息。
该删除请求消息用于请求删除第二策略关联。具体的,该删除请求消息用于请求第二vPCF删除第二策略关联,包括删除第二策略关联的信息中的第二AMF的信息。在一种实现方式中,该删除请求消息具体可以用于指示第二vPCF在未接收到用于请求更新第二策略关联的消息时删除第二策略关联。
步骤504,第二vPCF启动定时器。
在上述步骤503中,第二vPCF接收到删除请求消息后,可以不立即删除第二策略关联,而是启动定时器。
作为一种实现方式,第二vPCF在接收到删除请求消息后,根据该删除请求消息,启动定时器。
作为又一种实现方式,上述步骤503的删除请求消息中还可以包括删除指示,该删除指示用于指示所述第二vPCF在未接收到用于请求更新第二策略关联的消息时删除第二策略关联。即指示第二vPCF在未接收到更新请求消息时删除第二策略关联。当PCF接收到删除请求消息后,可以根据删除请求消息中的删除指示,启动定时器。
这里的删除指示,是一种条件删除指示,即用于指示第二vPCF:若未接收到用于请求更新第二策略关联的消息,则删除第二策略关联。
作为又一种实现方式,上述步骤303的删除请求消息中还可以包括AMF改变的指示,该AMF改变的指示用于通知第二vPCF:AMF发生改变,或者理解为,AMF改变的指示用于指示该删除请求消息是由AMF的改变触发的。当第二vPCF接收到删除请求消息后,可以根据删除请求消息中的AMF改变的指示,启动定时器。
步骤505,第二vPCF向第二hPCF发送删除请求消息,相应的,第二hPCF可以接收到该删除请求消息。
该删除请求消息也可以称为第四删除请求消息。
该删除请求消息用于请求删除第一策略关联。具体的,该删除请求消息用于请求第二hPCF删除第一策略关联,包括删除第一策略关联相关的所有信息。在一种实现方式中,该删除请求消息具体可以用于指示第二hPCF在未接收到用于请求更新第一策略关联的消息时删除第一策略关联。
步骤506,第二hPCF启动定时器。
在上述步骤505中,第二hPCF接收到删除请求消息后,可以不立即删除第一策略关联,而是启动定时器。
作为一种实现方式,第二hPCF在接收到删除请求消息后,根据该删除请求消息,启动定时器。
作为又一种实现方式,上述步骤505的删除请求消息中还可以包括删除指示,该删除指示用于指示所述第二hPCF在未接收到用于请求更新第一策略关联的消息时删除第一策略关联。即指示第二hPCF在未接收到更新请求消息时删除第一策略关联。当PCF接收到删除请求消息后,可以根据删除请求消息中的删除指示,启动定时器。
这里的删除指示,是一种条件删除指示,即用于指示第二hPCF:若未接收到用于请求更新第一策略关联的消息,则删除第一策略关联。
作为又一种实现方式,上述步骤505的删除请求消息中还可以包括AMF改变的指示,该AMF改变的指示用于通知第二hPCF:AMF发生改变,或者理解为,AMF改变的指示用于指示该删除请求消息是由AMF的改变触发的。当第二hPCF接收到删除请求消息后,可以根据删除请求消息中的AMF改变的指示,启动定时器。
步骤507-步骤508,同图4所示的实施例的步骤404-步骤405,可参考前述描述。
上述步骤502中,第一AMF在接收到第二AMF发送的终端的上下文后,从中获取到第一策略关联的信息,且第一策略关联的信息中包括第二hPCF的标识,该第二hPCF即为第二AMF使用的hPCF。接着,第一AMF决定是否使用该第二hPCF。
在一种情形中,第一AMF决定使用该第二hPCF,具体的,第一AMF选择的vPCF(可以称为第一vPCF)与第二AMF使用的第二vPCF是不同的vPCF,但第一AMF选择的hPCF与第二AMF使用的hPCF是同一个hPCF,即第二hPCF。若第一AMF决定使用第一vPCF和第二hPCF,则执行以下步骤509-步骤512。
在一种情形中,第一AMF决定不使用该第二hPCF,并且第一AMF决定不使用第二vPCF,即第一AMF选择的vPCF(可以称为第一vPCF)与第二AMF使用的第二vPCF是不同的vPCF,并且第一AMF选择的hPCF(可以称为第一hPCF)与第二AMF使用的hPCF也不是同一个hPCF。若第一AMF决定使用第一vPCF和第一hPCF,则执行以下步骤513-步骤516。
步骤509-步骤510,同图4所示的实施例的步骤406-步骤408,可参考前述描述。
步骤511,第二vPCF确定定时器超时。
由于第一AMF没有选择第二vPCF(第一AMF和第二vPCF位于不同的VPLMN,第一AMF不会选择第二vPCF),因此第二vPCF不会接收到来自第一AMF的用于请求更新第二策略关联的信息的消息,因而第二vPCF上定时器会超时。
步骤512,同图4所示的步骤411,可参考前述描述。
通过上述步骤501-步骤512,在AMF的重选的场景中,当第二hPCF接收到更新请求消息后,可以根据该更新请求消息,将第二hPCF中存储的第一策略关联的信息中的第二vPCF的信息更新为第一vPCF的信息。由于第二hPCF不需要删除第一策略关联的信息中的第二vPCF的信息,以及不需要重新建立与第一vPCF的策略关联,而是直接将第一策略关联的信息中的第二vPCF的信息更新为第一vPCF的信息,这样不需要为第一vPCF在第二hPCF上 创建新的资源,同时第二hPCF也不需要和UDR交互以获取终端的签约数据和之前为终端制定的策略,因而可以节约策略控制的资源开销。
步骤513,第二vPCF确定定时器超时。
由于第一AMF没有选择第二vPCF(第一AMF和第二vPCF位于不同的VPLMN,第一AMF不会选择第二vPCF),因此第二vPCF不会接收到来自第一AMF的用于请求更新第二策略关联的信息的消息,因而第二vPCF上定时器会超时。
步骤514,第二vPCF删除第二策略关联的信息。
步骤515,第二hPCF确定定时器超时。
由于第一AMF没有选择第二hPCF,因此第二hPCF不会接收到来自第一vPCF的用于请求更新第一策略关联的信息的消息,因而第二hPCF上定时器会超时。
步骤516,第二hPCF删除第一策略关联的信息。
通过上述步骤501-步骤508,以及步骤514-步骤517。当第一AMF确定与第二AMF使用不同的vPCF时,则第一vPCF不会向第二hPCF发送更新请求消息。定时器超时后,第二hPCF删除第一策略关联的信息。由于删除了第二vPCF不再使用的第二策略关联的信息,以及删除了第二hPCF不再使用的第一策略关联的信息,因而有助于避免第二vPCF和第二hPCF发生错误的策略决策。
需要说明的是,图5所示的实施例仅示出了AMF重选流程中的部分步骤,对于AMF重选的其它步骤,可参考现有技术相关描述,比如可以参考3GPP TS 23.502,这里不再赘述。
如图6所示,为本申请提供的一种策略控制方法,该方法适用于图1(c)所示的网络架构及应用场景。该方法包括以下步骤:
步骤601,第一AMF向第二AMF发送请求消息。相应的,第二AMF可以接收到该请求消息。该请求消息可以用于请求获取终端的上下文。
需要说明的是,该步骤601为可选步骤,实际应用中也可以不执行该步骤。
步骤602,第二AMF向第一AMF发送终端的上下文。相应的,第一AMF可以接收到终端的上下文。
其中,第二AMF向第一AMF发送的终端的上下文中包括第一策略关联(Policy Association)的信息,所述第一策略关联的信息包括第二hPCF的标识。该第二hPCF是与第二AMF建立策略关联的PCF。
需要说明的是,由于第一AMF与第二AMF是在不同的PLMN中,且第二AMF在归属地,因此第二AMF将第二hPCF的标识携带于第一策略关联的信息中发送给第一AMF。
步骤603,第二AMF启动定时器。
该定时器也可以称为第一定时器。
该定时器对应一个设定的时长,时长的具体值可根据实际需要设定或从其他网元,譬如从UDM网元中获取。该时长一般可以保证在正常情况下,第二AMF能在超时前接收到第二hPCF的通知消息。
第二AMF若在定时器超时前,接收到第二hPCF发送的第一通知消息,则定时器停止计时。该第一通知消息用于通知第二AMF:第二hPCF已接收到用于请求更新第一策略关联的 消息。
若第二AMF在定时器超时前始终未接收到第二hPCF发送的第一通知消息,则定时器将会超时。
上述步骤602中,第一AMF在接收到第二AMF发送的终端的上下文后,从中获取到第一策略关联的信息,且第一策略关联的信息中包括第二hPCF的标识,该第二hPCF即为第二AMF使用的hPCF。接着,第一AMF决定是否使用该第二hPCF。
在一种情形中,第一AMF决定使用该第二hPCF,即第一AMF选择一个vPCF(可以称为第一vPCF),且第一AMF选择的hPCF与第二AMF使用的hPCF是同一个hPCF,即第二hPCF。若第一AMF决定使用第一vPCF和第二hPCF,则执行以下步骤604-步骤608。
在一种情形中,第一AMF决定不使用该第二hPCF,即第一AMF选择一个vPCF(可以称为第一vPCF),并且第一AMF选择的hPCF(可以称为第一hPCF)与第二AMF使用的hPCF也不是同一个hPCF。若第一AMF决定使用第一vPCF和第一hPCF,则执行以下步骤604-步骤605,以及执行步骤609-步骤611。
步骤604,第一AMF向第一vPCF发送建立请求消息。相应的,第一vPCF可以接收到该建立请求消息。该建立请求消息包括更新信息和第一AMF的信息。更新信息包括第二hPCF的标识,更新信息用于指示第一vPCF向第二hPCF发送更新请求消息。该建立请求消息用于请求第一vPCF根据第一AMF的信息为终端创建第三策略关联。
下面介绍该更新信息的三种具体实现方法。
实现方法一,上述步骤602的终端的上下文的第一策略的信息包括第一资源的信息,该第一资源的信息包括第二hPCF的标识和第一资源的标识,第一资源为第一策略关联对应的资源,则更新信息包括第一资源的信息,更新信息用于指示第一vPCF向第二hPCF发送更新请求消息具体为:更新信息中的第一资源的信息用于指示第一vPCF向第二hPCF发送更新请求消息。
该实现方法中,第一AMF从第二AMF接收到的是第一资源的信息,该第一资源的信息是作为一个整体的,因此第一AMF不能够获取第一资源的信息中包括的第二hPCF的标识和第一资源的标识。第一AMF向第一vPCF发送的建立请求消息中携带的更新信息具体包括该第一资源的信息。从而,第一vPCF可以根据更新信息中的第一资源的信息,向第二hPCF发送更新请求消息。
实现方法二,上述步骤602的终端的上下文的第一策略的信息包括第一资源的标识和第二hPCF的标识,该第一资源的标识用于标识第一资源。则更新信息包括第一资源的标识和第二hPCF的标识,更新信息用于指示第一vPCF向第二hPCF发送更新请求消息具体为:更新信息中的第一资源的标识和第二hPCF的标识用于指示第一vPCF向第二hPCF发送更新请求消息。
该实现方法中,第一AMF从第二AMF接收到的是第一资源的标识和第二hPCF的标识,即第一AMF可以分别获取到第一资源的标识和第二hPCF的标识。第一AMF向第一vPCF发送的建立请求消息中携带的更新信息具体包括该第一资源的标识和第二hPCF的标识。从而,第一vPCF可以根据更新信息中的第一资源的标识和第二hPCF的标识,向第二hPCF发送更新请求消息。
实现方法三,上述步骤602的终端的上下文的第一策略的信息包括第二hPCF的标识,更新信息包括指示信息和第二hPCF的标识,更新信息用于指示第一vPCF向第二hPCF发送更新请求消息为:更新信息中的指示信息和第二hPCF的标识用于指示第一vPCF向第二hPCF发送更新请求消息。
该实现方法中,第一AMF从第二AMF接收到的是第二hPCF的标识。第一AMF向第一vPCF发送的建立请求消息中携带的更新信息具体包括该指示信息和第二hPCF的标识。从而,第一vPCF可以根据更新信息中的指示信息和第二hPCF的标识,向第二hPCF发送更新请求消息。作为一种具体实现方式,该指示信息例如可以是1比特的信息等。
步骤605,第一vPCF保存接收到的第一AMF的信息,为终端创建第三策略关联。
步骤606,第一vPCF根据更新信息向第二hPCF发送更新请求消息,相应的,第二hPCF可以接收到该更新请求消息。
该更新请求消息包括第一vPCF的信息,更新请求消息用于请求第二hPCF将第一策略关联的信息中的第二AMF的信息更新为第一vPCF的信息。
作为一种实现方式,这里的第一vPCF的信息可以包括第一vPCF的标识、第一vPCF用于接收策略更新的通知地址、终端通过第一AMF接入时的签约和终端的接入信息。
作为一种实现方式,这里的第二AMF的信息可以包括第二AMF的标识、第二AMF用于接收策略更新的通知地址、UE通过第二AMF接入时的签约和终端的接入信息。
步骤607,第二hPCF更新第一策略关联的信息。
具体的,第二hPCF根据接收到的更新请求消息,将第一策略关联的信息中的第二AMF的信息更新为第一vPCF的信息。
在又一种实现方式中,更新请求消息中还可以包括AMF改变的指示。该AMF改变的指示用于触发第二hPCF更新第一策略关联的信息。即,第二hPCF接收到更新请求消息,并根据更新请求消息中的AMF改变的指示,将第一策略关联的信息中的第二vPCF的信息更新为第一vPCF的信息。
第二hPCF更新第一策略关联的信息,比如,可以包括以下四种操作中的至少一种操作,即:可以包括其中的一种操作,或者可以包括其中的两种操作,或者可以包括其中的三种操作,或者可以包括其中的四种操作:
将第二AMF的标识更新为第一vPCF的标识,将第二AMF的用于接收策略更新的地址更新为第一vPCF的用于接收策略更新的地址,将终端的签约策略更新为终端当前的签约策略,以及将终端的接入信息更新为终端当前的接入信息。
作为又一种实现方式,上述步骤602中,第一AMF获取到的第一策略关联的信息中还可以包括第一资源的标识,第一资源为第二hPCF创建的第一策略关联对应的资源。则上述步骤604的建立请求消息中还可以携带该第一资源的标识。进而,上述步骤606中的更新请求消息可以携带该第一资源的标识。进而,上述步骤607中,第二hPCF更新第一策略关联的信息的具体方法为:第二hPCF根据第一资源的标识,将第一资源中的第一策略关联的信息中的第二AMF的信息更新为第一vPCF的信息。
作为又一种实现方式,上述步骤602中,第一AMF获取到的第一策略关联的信息具体可以包括第一资源的信息,第一资源的信息包括第一资源的标识和第二hPCF的标识,即第 一资源的信息是作为一个整体,第一AMF不能从第一资源的信息中单独获取到第一资源的标识或第一hPCF的标识,但第一资源的信息中包括了第一资源的标识和第二hPCF的标识。其中,第一资源为第二hPCF创建的第一策略关联对应的资源。则上述步骤406的更新请求消息中还可以携带该第一资源的资源,且更新请求消息具体用于请求将第一资源中的第一策略关联的信息中的第二AMF的信息更新为第一vPCF的信息。进而,上述步骤407中,第二hPCF更新第一策略关联的信息的具体方法为:第二hPCF根据第一资源的信息,将第一资源中的第一策略关联的信息中的第二AMF的信息更新为第一vPCF的信息。
作为一种实现方式,第二hPCF更新第一策略关联的信息之后,第二hPCF还可以根据更新后的策略关联的信息更新之前为终端制定的策略。进一步的,第二hPCF更新了为终端制定的策略后,还可以向第二AMF的用于接收策略更新的地址发送更新后的策略。
步骤608,第二hPCF向第二AMF发送通知消息,相应的,第二AMF可以接收到该通知消息。
该通知消息用于通知第二AMF:第二hPCF接收到了用于请求更新第一策略关联的消息,或者可以理解为,该通知消息用于通知第二AMF:第二hPCF接收到了上述步骤606中的更新请求消息。或者可以理解为,该通知消息用于通知第二AMF:第一AMF选择了第二hPCF。
通过上述步骤601-步骤608,在AMF的重选的场景中,当第二hPCF接收到更新请求消息后,可以根据该更新请求消息,将第二hPCF中存储的第一策略关联的信息中的第二AMF的信息更新为第一vPCF的信息。由于第二hPCF不需要删除第一策略关联的信息中的第二AMF的信息,以及不需要重新建立与第一vPCF的策略关联,而是直接将第一策略关联的信息中的第二AMF的信息更新为第一vPCF的信息,这样不需要为第一vPCF在第二hPCF上创建新的资源,同时第二hPCF也不需要和UDR交互以获取终端的签约数据和之前为终端制定的策略,因而可以节约策略控制的资源开销。
步骤609,第二AMF确定定时器超时。
由于第一AMF决定不使用第二hPCF,因此第二AMF在定时器超时前,不会接收到第二hPCF发送的第一通知消息,该第一通知消息用于通知第二AMF:第二hPCF接收到了用于请求更新第一策略关联的消息。因而定时器会超时。
步骤610,第二AMF向第二hPCF发送删除请求消息,相应的,第二hPCF可以接收到该删除请求消息。
该删除请求消息用于请求第二hPCF删除第一策略关联。具体的,该删除请求消息用于请求第二hPCF删除第一策略关联的信息。
步骤611,第二hPCF删除第一策略关联的信息。
比如,第二hPCF可以删除第一策略关联的信息,比如可以删除第一策略关联相关的所有信息。
需要说明的是,图6所示的实施例仅示出了AMF重选流程中的部分步骤,对于AMF重选的其它步骤,可参考现有技术相关描述,比如可以参考3GPP TS 23.502,这里不再赘述。
如图7所示,为本申请提供的又一种策略控制方法,该方法也适用于图1(c)所示的网络架构及应用场景。该方法包括以下步骤:
步骤701,第一AMF向第二AMF发送请求消息。相应的,第二AMF可以接收到该请求消息。该请求消息可以用于请求获取终端的上下文。
需要说明的是,该步骤701为可选步骤,实际应用中也可以不执行该步骤。
步骤702,第二AMF向第一AMF发送终端的上下文。相应的,第一AMF可以接收到终端的上下文。
其中,第二AMF向第一AMF发送的终端的上下文中包括第一策略关联(Policy Association)的信息,所述第一策略关联的信息包括第二hPCF的标识。该第二hPCF是与第二vPCF在建立关联的PCF。
需要说明的是,由于第一AMF与第二AMF是在不同的PLMN中,且第二AMF在归属地,因此第二AMF将第二hPCF的标识携带于策略关联的信息中发送给第一AMF。
步骤703,第二AMF向第二hPCF发送删除请求消息,相应的,第二hPCF可以接收到该删除请求消息。
该删除请求消息也可以称为第三删除请求消息。
该删除请求消息用于请求删除第一策略关联。具体的,该删除请求消息用于请求第二hPCF删除第一策略关联,包括删除第一策略关联相关的所有信息。
步骤704,第二hPCF启动定时器。
在该步骤704中,第二hPCF接收到删除请求消息后,可以不立即删除第一策略关联,而是启动定时器。
作为一种实现方式,第二hPCF在接收到删除请求消息后,根据该删除请求消息,启动定时器。
作为又一种实现方式,上述步骤703的删除请求消息中还可以包括删除指示,该删除指示用于指示所述第二hPCF在未接收到用于请求更新第一策略关联的消息时删除第一策略关联。即指示第二hPCF在未接收到更新请求消息时删除第一策略关联。当第二hPCF接收到删除请求消息后,可以根据删除请求消息中的删除指示,启动定时器。
这里的删除指示,是一种条件删除指示,即用于指示第二hPCF:若未接收到用于请求更新第一策略关联的消息,则删除第一策略关联。
作为又一种实现方式,上述步骤703的删除请求消息中还可以包括AMF改变的指示,该AMF改变的指示用于通知第二hPCF:AMF发生改变,或者理解为,AMF改变的指示用于指示该删除请求消息是由AMF的改变触发的。当第二hPCF接收到删除请求消息后,可以根据删除请求消息中的AMF改变的指示,启动定时器。
步骤705-步骤706,同图6所示的实施例的步骤604-步骤605,可参考前述描述。
上述步骤702中,第一AMF在接收到第二AMF发送的终端的上下文后,从中获取到第一策略关联的信息,且第一策略关联的信息中包括第二hPCF的标识,该第二hPCF即为第二AMF使用的hPCF。接着,第一AMF决定是否使用该第二hPCF。
在一种情形中,第一AMF决定使用该第二hPCF,即第一AMF选择的hPCF与第二AMF使用的hPCF是同一个hPCF,即第二hPCF。若第一AMF决定使用第二hPCF,则执行以下步骤707-步骤708。
在又一种情形中,第一AMF决定不使用该第二hPCF,即第一AMF选择的hPCF(可以称 为第一hPCF)与第二AMF使用的hPCF不是同一个hPCF。若第一AMF决定不第一hPCF,则执行以下步骤709-步骤710。
步骤707-步骤708,同图6所示的实施例的步骤606-步骤607,可参考前述描述。
通过上述步骤701-步骤708,在AMF的重选的场景中,当第二hPCF接收到更新请求消息后,可以根据该更新请求消息,更新第一策略关联的信息。由于第二hPCF不需要删除第一策略关联的信息,以及不需要重新建立与第一vPCF的策略关联,而是直接根据第一vPCF的信息根据第一策略关联的信息,这样不需要为第一vPCF在第二hPCF上创建新的资源,同时第二hPCF也不需要和UDR交互以获取终端的签约数据和之前为终端制定的策略,因而可以节约策略控制的资源开销。
步骤709,第二hPCF确定定时器超时。
由于第一AMF没有选择第二hPCF,因此第二hPCF不会接收到来自第一AMF的用于请求更新第一策略关联的消息,因而第二hPCF上的定时器会超时。
步骤710,第二hPCF删除第一策略关联的信息。
通过上述步骤701-步骤706,以及步骤709-步骤710。当第一AMF确定与第二AMF使用不同的hPCF时,则第一vPCF不会向第二hPCF发送更新请求消息。进而第二hPCF会删除第二hPCF中不再使用的第一策略关联的信息,因而有助于避免第二hPCF发生错误的策略决策。
作为示例,下面结合具体实施例,对图2-图5所示的策略控制方法进行具体说明。并且,图2-图5所示的实施例中第一AMF、第二AMF、第一vPLMN、第二vPLMN、第一vPCF、第二vPCF、第一hPCF、第二hPCF,分别用New AMF、Old AMF、vPLMN1、vPLMN2、New vPCF、Old vPCF、New hPCF、Old hPCF表示。并且,以用户设备(user equipment,UE)作为终端的一个示例进行说明。
如图8所示,为本申请提供的又一种策略控制方法,该方法是针对图2所示的实施例的一种具体实现,图8所示的实施例结合了图2所示的策略控制方法及AMF重选的其他流程。其中,New AMF和New vPCF位于vPLMN1,Old AMF和Old vPCF位于vPLMN2,New hPCF和Old hPCF位于hPLMN。该方法包括以下步骤:
步骤1:UE向(R)AN1发送注册请求消息,该注册请求消息中携带UE的标识(如签约用户永久标识(Subscription Permanent Identifier,SUPI))。相应的,(R)AN1可以接收到该注册请求消息。
其中,UE的标识也就是用户的标识。(R)AN1是(无线)接入网络((radio)access network)的缩写。
步骤2:(R)AN1向Old AMF发送注册请求消息,该注册请求消息中携带UE的标识。相应的,Old AMF可以接收到该注册请求消息。
步骤3:Old AMF与UDM交互,进行AMF的注册、获取用户的签约数据以及订阅用户签约数据改变的通知。
步骤4:Old AMF选择Old vPCF和Old hPCF,并向Old vPCF发送建立请求消息,例如该建立请求消息可以是Npcf_AMPolicyControl_Create Request消息,该建立请求消息用 于请求创建策略关联。建立请求消息中携带用户的标识、Old hPCF的标识和Old AMF的标识。相应的,Old vPCF接收该建立请求消息。
具体实现为:Old AMF向Old vPCF发送HTTP POST,请求URL1为{apiRoot1}/npcf-am-policy-control/v1/policies/。消息体中携带用户的标识,Old hPCF的标识和Old AMF的标识。此外,消息中还携带策略更新通知地址1,具体为NotifyUrl1。
其中,HTTP是超文本传输协议(Policy and Charging Control)的简称。URL是统一资源定位符的简称。URI是统一资源标识符(Uniform Resource Identifier)的简称。
步骤5:Old vPCF向Old hPCF发送建立请求消息,例如可以是Npcf_AMPolicyControl_Create Request消息,用于请求创建策略关联消息中携带用户的标识和Old vPCF的标识。相应的,Old hPCF接收该建立请求消息。
具体实现为:Old vPCF向Old hPCF发送HTTP POST,请求URL2为{apiRoot2}/npcf-am-policy-control/v1/policies/。消息体中携带用户的标识和Old vPCF的标识。此外,消息中还携带策略更新通知地址2,具体为NotifyUrl2。
步骤6:Old hPCF创建Old vPCF与Old hPCF之间的UE对应的策略关联(该策略关联称为第一策略关联),以及根据用户签约、网络策略以及接入网相关信息等为用户制定UE策略以及策略控制请求触发(Policy Control Request Trigger)。Old hPCF将制定的UE策略保存到UDR中。Old hPCF向Old vPCF返回响应消息,该响应消息例如可以是Npcf_AMPolicyControl_Create Response消息,该响应消息中携带UE策略和策略控制请求触发。由于Old hPCF可能没有用户相关的签约信息,因此Old hPCF可以和UDR交互后先获取用户签约。
具体实现为:Old hPCF创建策略关联对应的资源,分配一个子资源标识policyId2,并为这个创建的资源构造一个URI2,该URI2是将请求的URL2作为父资源(parent resource)再拼接子资源标识生成,即URI2为{apiRoot2}/npcf-am-policy-control/v1/policies/policyId2。Old hPCF向Old vPCF返回HTTP Response消息,并在消息的位置头域Location Head中携带URI2。在消息体中携带UE策略和策略控制请求触发。
步骤7:Old vPCF创建Old AMF与Old vPCF之间的UE对应的策略关联(该策略关联称为第二策略关联)。Old vPCF根据网络策略以及接入网相关信息等为用户制定接入和移动性控制的相关策略。Old vPCF向Old AMF返回响应消息,该响应消息例如可以是Npcf_AMPolicyControl_Create Response消息,该响应消息中携带UE策略、策略控制请求触发、接入和移动性控制的相关策略。
具体实现为:Old vPCF创建策略关联对应的资源,分配一个子资源标识policyId1,并为这个创建的资源构造一个URI1,该URI1是将请求的URL1作为父资源(parent resource)再拼接子资源标识生成,即URI1为{apiRoot1}/npcf-am-policy-control/v1/policies/policyId1。Old vPCF向Old AMF返回HTTP Response消息,并在消息的位置头域Location Head中携带URI1。在消息体中携带UE策略、策略控制请求触发、接入和移动性控制的相关策略。此外,Old vPCF还将Old hPCF创建的UE的策略关联对应的资源的信息(如URI2或policyId2)发送给Old AMF。
其中,URI2可以称为第一资源的信息,policyId2可以称为第一资源的标识。URI1可以称为第二资源的信息,policyId1可以称为第二资源的标识。
步骤8:Old AMF向UE返回注册接受消息,消息中携带接收的策略。相应的,UE接收该注册接受消息。
步骤9:UE发生移动,UE向(R)AN2发送注册请求消息,该注册请求消息中携带UE的临时标识(如5G全球唯一临时标识(5G Globally Unique Temporary Identifier,5G-GUTI))。相应的,(R)AN2接收该注册请求消息。
步骤10:(R)AN2向New AMF发送注册请求消息,消息中携带UE的临时标识。相应的,New AMF接收该注册请求消息。
步骤11:New AMF根据UE的临时标识向Old AMF发送请求消息,该请求消息例如可以是Namf_Communication_UEContextTransfer Request消息,该请求消息用于UE的上下文,例如获取用户的标识(如SUPI)和移动性管理(mobile management,MM)上下文。
步骤12:Old AMF向New AMF返回响应消息,该响应消息例如可以是Namf_Communication_UEContextTransfer Response消息,该响应消息中携带用户的标识和MM上下文。相应的,New AMF接收该响应消息。
Old AMF根据配置的策略决定是否在上下文中携带Old hPCF的标识和Old hPCF创建的UE的策略关联对应的资源的信息(即URI2或policyId2)。由于URI2中包括了Old hPCF的标识,因此若在响应消息中携带了URI2,则可以不需要在响应消息中再携带Old hPCF的标识。
步骤13:New AMF向Old AMF发送注册完成通知消息,该注册完成通知消息可以是Namf_Communication_RegistrationCompleteNotify消息,该注册完成通知消息用于通知Old AMF:UE在New AMF的注册已经完成。相应的,Old AMF可以接收该注册完成通知消息。
步骤14:Old AMF启动定时器。
步骤15:New AMF向UDM注册New AMF,获取用户的签约数据以及订阅用户签约数据改变的通知。
步骤16:UDM向Old AMF发送去注册通知消息,该去注册通知消息例如可以是Nudm_UECM_DeregistrationNotification Request消息,Old AMF删除UE的MM上下文。Old AMF向UDM返回去注册响应消息,该去注册响应消息例如可以是Nudm_UECM_DeregistrationNotification Response消息。并且,Old AMF取消订阅签约数据修改的通知,即用户数据改变通知的去订阅。
步骤17:若New AMF未接收到Old hPCF的标识(或资源的信息),或New AMF接收到了Old hPCF的标识(或资源的信息)但New AMF决定不使用Old hPCF,则New AMF需要选择New vPCF和New hPCF。若New AMF接收到了Old hPCF的标识(或资源的信息)且New AMF决定使用Old hPCF,则New AMF只需要选择New vPCF。New AMF向New vPCF发送建立请求消息,该建立请求消息例如可以是Npcf_AMPolicyControl_Create Request消息,该建立请求消息用于请求创建策略关联。该建立请求消息中携带用户的标识(如SUPI)、New AMF的标识和策略更新通知地址3(具体为NotifyUrl3)。进一步的,若New AMF使用Old hPCF,则建立请求消息还包括Old hPCF的标识(或资源的信息),若New AMF不使用Old hPCF, 则建立请求消息还包括New hPCF的标识。相应的,New vPCF接收该建立请求消息。
具体实现为:New AMF向New vPCF发送HTTP POST,请求URL3为{apiRoot3}/npcf-am-policy-control/v1/policies/。消息体中携带用户的标识,New AMF的标识,以及New hPCF的标识(AMF不使用Old hPCF)或资源的信息(New AMF使用Old hPCF)。消息中还可以携带AMF改变的指示。
步骤18:New vPCF在步骤12中若接收到New hPCF的标识,则向New hPCF发送建立请求消息,该建立请求消息例如可以是Npcf_AMPolicyControl_Create Request消息,该建立请求消息用于请求创建策略关联。消息中携带用户的标识。相应的,New hPCF接收该建立请求消息。
具体实现为:New vPCF向New hPCF发送HTTP POST,请求URL4为{apiRoot4}/npcf-am-policy-control/v1/policies/。消息体中携带用户的标识,New vPCF标识。
步骤19:New hPCF创建New vPCF与New hPCF之间的UE对应的策略关联(该策略关联可以称为第四策略关联)。New hPCF需要与UDR交互,获取用户签约以及Old hPCF之前制定的UE策略。New hPCF根据用户签约、网络策略以及接入网相关信息等确定是否需要为用户更新之前制定的UE策略以及策略控制请求触发(Policy Control Request Trigger)。New hPCF向New vPCF返回响应消息,该响应消息例如可以是Npcf_AMPolicyControl_Create Response消息,响应消息中携带更新后的UE策略和策略控制请求触发(若更新的话)。相应的,New vPCF接收响应消息。
具体实现为:New hPCF创建策略关联对应的资源,分配一个子资源标识policyId4,并为这个创建的资源构造一个URI4,该URI4是将请求的URL4作为父资源(parent resource)再拼接子资源标识生成,即URI4为{apiRoot4}/npcf-am-policy-control/v1/policies/policyId4。New hPCF向New vPCF返回HTTP Response消息,并在消息的位置头域Location Head中携带URI4。在消息体中携带更新的UE策略和策略控制请求触发(如果更新的话)。
步骤20:若New vPCF在上述步骤12中接收到了资源的信息,则New vPCF向Old hPCF发送更新请求消息,该更新请求消息例如可以是Npcf_AMPolicyControl_Update Request消息,该更新请求消息用于请求更新策略关联。
具体实现为:New vPCF向Old hPCF发送HTTP POST,请求URL为{apiRoot2}/npcf-am-policy-control/v1/policies/policyId2/update。消息体中携带New vPCF标识,策略更新通知地址4(具体为NotifyUrl4)。
步骤21:Old hPCF根据URL对应的资源(即{apiRoot2}/npcf-am-policy-control/v1/policies/policyId2对应的资源)进行更新,包括将Old vPCF的标识替换为New vPCF的标识,将策略更新通知地址3替换为策略更新通知地址4等。然后,Old hPCF向New vPCF发送更新响应消息。
步骤22:Old hPCF向Old vPCF发送通知消息,该通知消息例如可以是Npcf_AMPolicyControl_UpdateNotify Request消息,该通知消息用于通知Old vPCF:New AMF使用了Old hPCF。
具体实现为:Old hPCF向Old vPCF送HTTP POST,请求URL为{NotifyURL2},在消息体中携带AMF改变的指示。
步骤23:Old vPCF向Old AMF发送通知消息,该通知消息例如可以是Npcf_AMPolicyControl_UpdateNotify Request消息,该通知消息用于通知New AMF使用了Old hPCF。具体实现为:Old hPCF向Old vPCF送HTTP POST,请求URL为{NotifyURL1},在消息体中携带AMF改变的指示。
步骤24:Old AMF停止步骤14中启动的定时器。Old AMF向Old vPCF发送响应消息。相应的,Old vPCF接收响应消息。
步骤25:Old vPCF向Old hPCF发送响应消息。
步骤26:Old AMF向Old vPCF发送删除请求消息,该删除请求消息可以是Npcf_AMPolicyControl_Delete消息,删除请求消息用于请求删除策略关联(即请求删除Old vPCF中的第二策略关联),消息中还携带可以指示信息,该指示信息用于指示只需要删除Old vPCF上的第二策略关联。
具体实现为:Old AMF向Old vPCF发送HTTP Delete消息,请求URL为{apiRoot1}/npcf-am-policy-control/v1/policies/policyId1。
步骤27:Old vPCF删除策略关联后向Old AMF发送响应消息。
步骤28:New vPCF创建New AMF与New vPCF之间的UE对应的策略关联(该策略管关联可以称为第三策略关联)。New vPCF根据网络策略以及接入网相关信息等确定是否需要更新用户制定接入和移动性控制的相关策略。New vPCF向New AMF发送响应消息,该响应消息例如可以是Npcf_AMPolicyControl_Create Response消息,该响应消息中携带UE策略、策略控制请求触发和接入和移动性控制的相关策略(如果更新的话)。
具体实现为:New vPCF创建策略关联对应的资源,分配一个子资源标识policyId3,并为这个创建的资源构造一个URI3,该URI3是将请求的URL3作为父资源(parent resource)再拼接子资源标识生成,即URI3为{apiRoot3}/npcf-am-policy-control/v1/policies/policyId3。New vPCF向New AMF返回HTTP Response消息,并在消息的位置头域Location Head中携带URI3。在消息体中携带UE策略、策略控制请求触发、接入和移动性控制的相关策略(如果更新的话)。
步骤29:New AMF向UE返回注册接受消息,注册接受消息消息中携带New AMF接收到的策略。相应的,UE接收该注册接受消息。
步骤30:若New AMF选择了New hPCF,则Old AMF未收到步骤23的通知消息,步骤14启动的定时器将会超时。
步骤31:定时器超时后,Old AMF向Old vPCF发送删除请求消息,该删除请求消息例如可以是Npcf_AMPolicyControl_Delete Request消息,该删除请求消息用于请求删除之前Old AMF与Old vPCF创建的策略关联。相应的,Old vPCF接收删除请求消息。
具体实现为:Old AMF向Old vPCF发送HTTP Delete消息,请求URL为{apiRoot1}/npcf-am-policy-control/v1/policies/policyId1。
步骤32:Old vPCF向Old hPCF发送删除请求消息,该删除请求消息例如可以是Npcf_AMPolicyControl_Delete Request消息,该删除请求消息用于请求删除之前Old vPCF 和Old hPCF创建的策略关联。
具体实现为:Old vPCF向Old hPCF发送HTTP Delete消息,请求URL为{apiRoot2}/npcf-am-policy-control/v1/policies/policyId2。
步骤33:Old hPCF删除对应的策略关联(即资源)后,向Old vPCF发送删除响应消息。相应的,Old vPCF接收删除响应消息。具体的,Old hPCF删除第一策略关联的信息。
步骤34:Old vPCF删除对应的策略关联(即资源)后,向Old AMF发送删除响应消息。相应的,Old AMF接收删除响应消息。具体的,Old vPCF删除第二策略关联的信息。
如图9所示,为本申请提供的又一种策略控制方法,该方法是针对图3所示的实施例的一种具体实现,图9所示的实施例结合了图3所示的策略控制方法及AMF重选的其他流程。其中,New AMF和New vPCF位于vPLMN1,Old AMF和Old vPCF位于vPLMN2,New hPCF和Old hPCF位于hPLMN。该方法包括以下步骤:
步骤1-步骤13,同图8所示的实施例的步骤1-步骤13。
步骤14-步骤18,同图8所示的实施例的步骤15-步骤19。
步骤19:若New vPCF接收了资源信息,则New vPCF向Old hPCF发送更新请求消息,该更新请求消息可以是Npcf_AMPolicyControl_Update Request消息,更新请求消息用于请求更新策略关联。相应的,Old hPCF接收该更新请求消息。
具体实现为:New vPCF向Old hPCF发送HTTP POST,请求URL为{apiRoot2}/npcf-am-policy-control/v1/policies/policyId2/update。消息体中携带New vPCF的标识,策略更新通知地址4(具体为NotifyUrl4)。
步骤20:Old hPCF根据URL对应的资源(即{apiRoot2}/npcf-am-policy-control/v1/policies/policyId2对应的资源)进行更新,包括将Old vPCF的标识替换为New vPCF的标识,将策略更新通知地址3更新为策略更新通知地址4等。
步骤21-步骤22,同图8所示的实施例的步骤28-步骤29。
步骤23:Old AMF向Old vPCF发送删除请求消息,该删除请求消息例如可以是Npcf_AMPolicyControl_Delete Request消息,该删除请求消息用于请求若Old vPCF未收到更新请求消息,则删除策略关联。
由于删除请求消息和更新请求消息有可能是并发的,因此收到的先后顺序不固定。若在接收到步骤23时,已经接收到了更新请求消息(在本实施例中,Old vPCF不会接收到,因为Old AMF没有将Old vPCF的标识发送给New AMF),那么Old vPCF忽略该请求消息,即不执行删除策略关联的操作。若Old vPCF在步骤23时还没有收到更新请求消息,那么Old vPCF将根据配置等待一段时候后(即启动定时器),若在定时器超时前接收到更新请求消息,则Old vPCF忽略该删除请求消息,即不执行删除策略关联的操作。若在定时器超时时,还未接收到更新请求消息,则删除策略关联,具体的,删除第二策略关联的信息。(在本实施例中,定时器总是超时的)。
具体实现为:Old AMF向Old vPCF发送HTTP Delete消息,请求URL为{apiRoot1}/npcf-am-policy-control/v1/policies/policyId1。
步骤24:Old vPCF向Old hPCF发送删除请求消息,该删除请求消息例如可以是Npcf_AMPolicyControl_Delete Request消息,该删除请求消息用于请求若Old hPCF未收到更新请求消息,则删除策略关联。
由于删除请求消息和更新请求消息有可能是并发的,因此收到的先后顺序不固定。若在接收到步骤24时,已经接收到了更新请求消息,那么Old hPCF忽略该请求消息,即不执行删除策略关联的操作。若Old hPCF在步骤24时还没有收到更新请求消息,那么Old hPCF将根据配置等待一段时候后(即启动定时器),若在定时器超时前接收到更新请求消息,则Old PCF忽略该删除请求消息,即不执行删除策略关联的操作。若在定时器超时时,还未接收到更新请求消息,则删除策略关联,具体的,删除第一策略关联的信息。
删除请求消息中可以携带条件删除指示,那么只有当收到该条件删除指示时,则启动定时器。条件删除指示,可以为一个特定的指示或表示AMF重选,具体实现为:Old AMF向Old PCF发送HTTP Delete消息,请求URL为{apiRoot2}/npcf-am-policy-control/v1/policies/policyId2。
步骤25:Old hPCF向Old vPCF发送删除响应消息。相应的,Old vPCF接收删除响应消息。
步骤26:Old vPCF向Old AMF发送删除响应消息。相应的Old AMF接收删除响应消息。
如图10所示,为本申请提供的又一种策略控制方法,该方法是针对图4所示的实施例的一种具体实现,图10所示的实施例结合了图4所示的策略控制方法及AMF重选的其他流程。其中,New AMF、New vPCF、Old AMF和Old vPCF位于同一个vPLMN,New hPCF和Old hPCF位于hPLMN。该方法包括以下步骤:
步骤1-步骤11:同图8所示的实施例的步骤1-步骤11。
步骤12:Old AMF向New AMF返回返回响应消息,该响应消息例如可以是Namf_Communication_UEContextTransfer Response,该响应消息携带用户的标识和MM上下文。相应的,New AMF接收该响应消息。
Old AMF根据配置的策略决定是否在上下文中携带Old vPCF的标识,Old hPCF的标识,Old vPCF创建的UE的策略关联对应的资源信息(即URI1或policyId1)和Old hPCF创建的UE的策略关联对应的资源信息(即URI2或policyId2)。由于URI2中包括了Old hPCF的标识,因此若在响应消息中携带了URI2,则可以不需要在响应消息中再携带Old hPCF的标识。
步骤13-步骤16:同图8所示的实施例的步骤13-步骤16。
步骤17:若New AMF未接收到Old vPCF的标识和Old hPCF的标识,或New AMF接收到了Old vPCF标识和Old hPCF标识但New AMF决定不使用Old vPCF和Old hPCF,则New AMF选择New vPCF和New hPCF。New AMF向New vPCF发送建立请求消息,该建立请求消息例如可以是Npcf_AMPolicyControl_Create Request消息,该建立请求消息用于请求创建策略关联。该建立请求消息中携带用户标识(如SUPI)、New AMF的标识和New hPCF的标识。
具体实现为:New AMF向New vPCF发送HTTP POST,请求URL3为 {apiRoot3}/npcf-am-policy-control/v1/policies/。消息体中携带用户的标识,New AMF的标识,以及New hPCF的标识。
步骤18-步骤19:同图8所示的实施例的步骤18-步骤19。
步骤20:同图8所示的实施例的步骤28。
步骤21:若New AMF使用Old vPCF和Old hPCF,则New AMF向Old vPCF发送更新请求消息,该更新请求消息例如可以是Npcf_AMPolicyControl_Update Request消息,更新请求消息用于请求更新策略关联。更新请求消息中携带New AMF的标识、策略更新通知地址3以及hPCF创建的UE的策略关联的资源对应的资源信息(可选)。相应的,Old vPCF接收更新请求消息。
具体实现为:New AMF向Old vPCF发送HTTP POST,请求URL为{apiRoot1}/npcf-am-policy-control/v1/policies/policyId1/Update,请求对URL对应的资源(即{apiRoot1}/npcf-am-policy-control/v1/policies/policyId1对应的资源)进行修改,即消息体中携带New AMF标识,Old hPCF的资源信息。
步骤22:Old vPCF向Old hPCF发送更新请求消息,该更新请求消息例如可以是Npcf_AMPolicyControl_Update Request消息,更新请求消息用于请求更新策略关联。相应的,Old hPCF接收更新请求消息。
具体实现为:Old vPCF向hPCF发送HTTP POST,请求URL为{apiRoot2}/npcf-am-policy-control/v1/policies/policyId2/Update。
步骤23:Old hPCF更新策略关联(即更新资源)后,向Old vPCF发送更新响应消息。相应的,Old vPCF接收更新响应消息。具体的,Old hPCF更新第一策略关联的信息。
步骤24:Old vPCF更新策略关联(即更新资源)后,将New AMF的标识替换Old AMF的标识,将策略更新通知地址3替换为策略更新地址1,然后向New AMF发送更新响应消息。相应的,New AMF接收更新响应消息。具体的,Old vPCF更新第二策略关联的信息。
步骤25:Old vPCF向Old AMF发送通知消息,该通知消息例如可以是Npcf_AMPolicyControl_UpdateNotify Request消息,该通知消息用于通知策略关联已更新。具体实现为:Old vPCF向Old AMF发送HTTP POST消息,请求URL为{NotifyUri1}。
步骤26:Old AMF停止定时器,并向Old vPCF发送响应消息。
步骤27:New AMF向UE返回注册接受消息,注册接受消息消息中携带New AMF接收到的策略。相应的,UE接收该注册接受消息。
步骤28:定时器超时。
步骤29:Old AMF向Old vPCF发送删除请求消息,该删除请求消息例如可以是Npcf_AMPolicyControl_Delete Request消息。相应的,Old vPCF接收删除请求消息。该删除请求消息用于请求删除第二策略关联。
步骤30:Old vPCF向Old hPCF发送删除请求消息,该删除请求消息例如可以是Npcf_AMPolicyControl_Delete Request。相应的,Old hPCF接收删除请求消息。该删除请求消息用于请求删除第一策略关联。
步骤31:Old hPCF删除第一策略关联的信息后向Old vPCF发送删除响应消息。相应的,Old vPCF接收删除响应消息。
步骤32:Old vPCF删除策略关联的信息后向Old AMF发送删除响应消息。相应的,Old AMF接收删除响应消息。
如图11所示,为本申请提供的又一种策略控制方法,该方法是针对图5所示的实施例的一种具体实现,图11所示的实施例结合了图5所示的策略控制方法及AMF重选的其他流程。其中,New AMF、New vPCF、Old AMF和Old vPCF位于同一个vPLMN,New hPCF和Old hPCF位于hPLMN。该方法包括以下步骤:
步骤1-步骤13:同图10所示的实施例的步骤1-步骤13。
步骤14-步骤23,同图10所示的实施例的步骤15-步骤24。
步骤24:New AMF向UE返回注册接受消息,注册接受消息消息中携带New AMF接收到的策略。相应的,UE接收该注册接受消息。
步骤25:Old AMF向Old vPCF发送删除请求消息,该删除请求消息例如可以是Npcf_AMPolicyControl_Delete Request消息,该删除请求消息用于请求若Old vPCF未收到更新请求消息,则删除策略关联。相应的,Old vPCF接收删除请求消息。
由于删除请求消息和更新请求消息有可能是并发的,因此收到的先后顺序不固定。若Old vPCF在执行步骤25时已经接收到了更新请求消息,那么Old vPCF忽略该请求消息,即不执行删除策略关联的操作。若Old vPCF在执行步骤25时还没有收到更新请求消息,则Old vPCF将根据配置等待一段时候后(即启动定时器),若在定时器超时前接收到更新请求消息,则Old vPCF忽略该请求消息,即不执行删除策略关联的操作。若在定时器超时时,还未接收到更新请求消息,则删除策略关联。消息中携带条件删除指示,那么只有当收到该指示时,则启动定时器。具体实现为:Old AMF向Old vPCF发送HTTP Delete消息,请求URL为{apiRoot1}/npcf-am-policy-control/v1/policies/policyId1。
步骤26:Old vPCF向Old hPCF发送删除请求消息,该删除请求消息例如可以是Npcf_AMPolicyControl_Delete Request消息,删除请求消息用于请求若Old hPCF未收到更新请求消息则删除策略策略关联。
由于删除请求消息和更新请求消息有可能是并发的,因此收到的先后顺序不固定。若Old hPCF执行步骤26时已经接收到了更新请求消息,Old hPCF忽略该删除请求消息,即不执行删除策略关联的操作。若Old hPCF执行步骤26时还没有收到更新请求消息,则Old hPCF将根据配置等待一段时候后(即启动定时器),若在定时器超时前接收到更新请求消息,则Old hPCF忽略该删除请求消息,即不执行删除策略关联的操作。若在定时器超时时,还未接收到更新请求消息,则删除第一策略关联。
可选的,删除请求消息中还可以携带条件删除指示,则只有当收到该条件删除指示时,才启动定时器。该条件删除指示,可以为一个特定的指示或表示AMF重选的指示信息,具体实现为:Old AMF向Old PCF发送HTTP Delete消息,请求URL为{apiRoot2}/npcf-am-policy-control/v1/policies/policyId2。
步骤27:Old hPCF删除第一策略关联的信息后向Old vPCF发送删除响应消息。相应的,Old vPCF接收删除响应消息。
步骤28:Old vPCF删除第二策略关联的信息后向Old AMF发送删除响应消息。相应的, Old AMF接收删除响应消息。
基于相同的发明构思,如图12所示,为本申请提供的一种装置示意图,该装置可以是移动性管理网元、策略控制网元或芯片,可执行上述任一实施例的方法。当该装置是策略控制网元或芯片时,该装置1200可用于执行图2-图11所示的是实施例中由第一vPCF(或New vPCF)、或第二vPCF(或Old vPCF)、或第二hPCF(或Old hPCF)执行的操作。当该装置是移动性管理网元或芯片时,该装置1200可用于执行图2-图11所示的是实施例中由第一AMF(或New AMF)、或第二AMF(或Old AMF)执行的操作。
该装置1200包括至少一个处理器1201,通信线路1202,存储器1203以及至少一个通信接口1204。
处理器1201可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
通信线路1202可包括一通路,在上述组件之间传送信息。
通信接口1204,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN),有线接入网等。
存储器1203可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically er服务器able programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路1202与处理器相连接。存储器也可以和处理器集成在一起。
其中,存储器1203用于存储执行本申请方案的计算机执行指令,并由处理器1201来控制执行。处理器1201用于执行存储器1203中存储的计算机执行指令,从而实现本申请上述实施例提供的策略控制方法。
可选的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。
在具体实现中,作为一种实施例,处理器1201可以包括一个或多个CPU,例如图12中的CPU0和CPU1。
在具体实现中,作为一种实施例,装置1200可以包括多个处理器,例如图12中的处理器1201和处理器12012。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
当图12所示的装置为芯片时,例如可以是第一移动性管理网元的芯片,或第二移动性 管理网元的芯片,或策略控制网元(如第一vPCF、或第二vPCF、或第二hPCF)的芯片,则该芯片包括处理器1201(还可以包括处理器12012)、通信线路1202、存储器1203和通信接口1204。具体地,通信接口1204可以是输入接口、管脚或电路等。存储器1203可以是寄存器、缓存等。处理器1201和处理器12012可以是一个通用的CPU,微处理器,ASIC,或一个或多个用于控制上述任一实施例的策略控制方法的程序执行的集成电路。
本申请可以根据上述方法示例对装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。比如,在采用对应各个功能划分各个功能模块的情况下,图13示出了一种装置示意图,该装置1300可以是上述实施例中所涉及的第一移动性管理网元,或者为上述实施例中所涉及的第二移动性管理网元,或者为上述实施例中所涉及的第一拜访地策略控制网元,或者为上述实施例中所涉及的第二拜访地策略控制网元,或者为上述实施例中所涉及的第二归属地策略控制网元,或者为第一移动性管理网元中的芯片,或者为第二移动性管理网元中的芯片,或者为第一拜访地策略控制网元中的芯片,或者为第二拜访地策略控制网元中的芯片,或者为第二归属地策略控制网元中的芯片。该装置1300包括接收单元1301、发送单元1302和处理单元1303。
在一个实施例中,当装置1300为上述实施例的第一移动性管理网元或第一移动性管理网元的芯片时,在一个应用场景中:
所述接收单元,用于接收来自第二移动性管理网元的终端的上下文,所述终端的上下文包括第二策略关联的信息,所述第二策略关联的信息包括第二拜访地策略控制网元的标识,所述第二策略关联是由所述第二拜访地策略控制网元为终端创建的;所述处理单元,用于选择所述第二拜访地策略控制网元;所述发送单元,用于在所述处理单元选择所述第二拜访地策略控制网元的情况下,向所述第二拜访地策略控制网元发送更新请求消息,所述更新请求消息包括所述第一移动性管理网元的信息,所述更新请求消息用于请求所述第二拜访地策略控制网元将所述第二策略关联的信息中的第二移动性管理网元的信息更新为所述第一移动性管理网元的信息;其中,所述第一移动性管理网元、所述第二移动性管理网元和所述第二拜访地策略控制网元位于同一个拜访地公共陆地移动网络vPLMN。
作为一种实现方式,所述第二策略关联的信息包括第二拜访地策略控制网元的标识,具体为:所述第二策略关联的信息包括第二资源的信息,所述第二资源的信息包括所述第二拜访地策略控制网元的标识和所述第二资源的标识,所述第二资源为所述第二策略关联对应的资源,则所述更新请求消息具体用于请求将所述第二资源中的所述第二策略关联的信息中的所述第二移动性管理网元的信息更新为所述第一移动性管理网元的信息;或者,
所述终端的上下文包括的所述第二策略关联的信息还包括所述第二资源的标识,则所述更新请求消息还包括所述第二资源的标识,所述更新请求消息具体用于请求将所述第二资源中的所述第二策略关联的信息中的所述第二移动性管理网元的信息更新为所述第一移动性管理网元的信息。
在另一个应用场景中,所述接收单元,用于接收来自第二移动性管理网元的终端的上下文,所述终端的上下文包括第一策略关联的信息,所述第一策略关联的信息包括第二归属地策略控制网元的标识,所述第一策略关联是由所述第二归属地策略控制网元为终端创建的;所述处理单元,用于选择第一拜访地策略控制网元;所述发送单元,用于在所述处理单元选择第一拜访地策略控制网元的情况下,向所述第一拜访地策略控制网元发送建立请求消息,所述建立请求消息包括更新信息和所述第一移动性管理网元的信息,所述建立请求消息用于请求所述第一拜访地策略控制网元根据所述第一移动性管理网元的信息为所述终端创建第三策略关联,所述更新信息包括所述第二归属地策略控制网元的标识,所述更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息;其中,所述第一移动性管理网元和所述第一拜访地策略控制网元位于第一拜访地拜访地公共陆地移动网络vPLMN,所述第二移动性管理网元位于第二vPLMN或归属地拜访地公共陆地移动网络hPLMN,所述第二归属地策略控制网元位于hPLMN。
作为一种实现方式,所述第一策略关联的信息包括第二归属地策略控制网元的标识,具体为:所述策略关联的信息包括第一资源的信息,所述第一资源的信息包括所述第二归属地策略控制网元的标识和所述第一资源的标识,所述第一资源为所述第一策略关联对应的资源,则所述更新信息包括所述第二归属地策略控制网元的标识,具体为:所述更新信息包括所述第一资源的信息,所述更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息,具体为:所述更新信息中的所述第一资源的信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息;或者,
所述第一策略关联的信息还包括所述第一资源的标识,则所述更新信息还包括所述第一资源的标识,所述更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息,具体为:所述更新信息中的所述第二归属地策略控制网元的标识和所述第一资源的标识用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息;或者,
所述更新信息还包括指示信息,所述更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息,具体为:所述更新信息中的所述第二归属地策略控制网元的标识和所述指示信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息。
在又一个实施例中,当装置1300为上述实施例的第二移动性管理网元或第二移动性管理网元的芯片时,在一个应用场景中,所述接收单元,用于接收来自第一移动性管理网元的请求消息,所述请求消息用于请求获取终端的上下文;所述发送单元,用于向所述第一移动性管理网元发送所述终端的上下文,所述终端的上下文包括第二策略关联的信息,所述第二策略关联的信息包括第二拜访地策略控制网元的标识,所述第二策略关联是由所述第二拜访地策略控制网元为所述终端创建的;其中,所述第一移动性管理网元、所述第二拜访地策略控制网元和所述第二移动性管理网元位于同一个拜访地公共陆地移动网络vPLMN。
作为一种实现方式,所述处理单元,用于启动第一定时器;所述处理单元,还用于在所述接收单元在所述第一定时器超时前接收到来自所述第二拜访地策略控制网元的第一通知消息的情况下,停止所述第一定时器,所述第一通知消息用于通知所述第二移动性管理网元,所述第二拜访地策略控制网元接收到了用于请求更新所述第二策略关联的消息。
作为一种实现方式,所述处理单元,用于启动第一定时器;所述处理单元还用于在所述接收单元在所述第一定时器超时前未接收到来自所述第二拜访地策略控制网元的第一通知消息的情况下,向所述第二拜访地策略控制网元发送第一删除请求消息,所述第一通知消息用于通知所述第二移动性管理网元,所述第二拜访地策略控制网元接收到了用于请求更新所述第二策略关联的消息,所述第一删除请求消息用于请求所述第二拜访地策略控制网元删除所述第二策略关联,以及用于指示所述第二拜访地策略控制网元请求第二归属地策略控制网元删除第一策略关联,所述第一策略关联是由所述第二归属地策略控制网元为所述终端创建的;其中,所述第二归属地策略控制网元位于归属地公共陆地移动网络hPLMN。
作为一种实现方式,所述第一删除请求消息包括第一删除指示,所述第一删除指示用于指示所述第二拜访地策略控制网元请求所述第二归属地策略控制网元删除所述第一策略关联。
作为一种实现方式,所述发送单元,还用于向所述第二拜访地策略控制网元发送第二删除请求消息,所述第二删除请求消息用于指示所述第二拜访地策略控制网元在未接收到用于请求更新所述第二策略关联的消息时删除所述第二策略关联。
在又一个应用场景中,所述接收单元,用于接收来自第一移动性管理网元的请求消息,所述请求消息用于请求获取终端的上下文;所述发送单元,用于向所述第一移动性管理网元发送所述终端的上下文,所述终端的上下文包括第一策略关联的信息,所述第一策略关联的信息包括第二归属地策略控制网元的标识,所述第一策略关联是由所述第二归属地策略控制网元为终端创建的;其中,所述第一移动性管理网元位于第一拜访地拜访地公共陆地移动网络vPLMN,所述第二移动性管理网元位于第二vPLMN或位于归属地拜访地公共陆地移动网络hPLMN,所述第二归属地策略控制网元位于hPLMN。
作为一种实现方式,若所述第二移动性管理网元位于第二vPLMN,所述处理单元,还用于启动第一定时器;所述发送单元,还用于在所述接收单元在所述第一定时器超时前未接收到来自第二拜访地策略控制网元的第一通知消息的情况下,向所述第二拜访地策略控制网元发送第一删除请求消息,所述第一通知消息用于通知所述第二移动性管理网元,所述第二归属地策略控制网元接收到了用于请求更新所述第一策略关联的消息,所述第一删除请求消息用于请求所述第二拜访地策略控制网元删除第二策略关联,以及用于指示所述第二拜访地策略控制网元请求所述第二归属地策略控制网元删除所述第一策略关联,所述第二策略关联是由所述第二拜访地策略控制网元为所述终端创建的。
作为一种实现方式,所述第一删除请求消息包括第一删除指示,所述第一删除指示用于指示所述第二拜访地策略控制网元请求所述第二归属地策略控制网元删除所述第一策略关联。
作为一种实现方式,若所述第二移动性管理网元位于第二vPLMN,所述处理单元,还用于启动第一定时器;所述发送单元,还用于在所述接收单元所述第二移动性管理网元在所 述第一定时器超时前接收到来自所述第二拜访地策略控制网元的第一通知消息的情况下,向所述第二拜访地策略控制网元发送第二删除请求消息,所述第一通知消息用于通知所述第二移动性管理网元,所述第二归属地策略控制网元接收到了用于请求更新所述第一策略关联的消息,所述第二删除请求消息用于请求所述第二拜访地策略控制网元删除第二策略关联,所述第二策略关联是由所述第二拜访地策略控制网元为所述终端创建的;其中,所述第二拜访地策略控制网元位于所述第二vPLMN。
作为一种实现方式,所述第二删除请求消息包括第二删除指示,所述第二删除指示用于指示所述第二拜访地策略控制网元不向所述第二归属地策略控制网元请求删除所述第一策略关联。
作为一种实现方式,若所述第二移动性管理网元位于所述第二vPLMN,则所述发送单元还用于向第二拜访地策略控制网元发送第三删除请求消息,所述第三删除请求消息用于指示所述第二拜访地策略控制网元在未接收到用于请求更新第二策略关联的消息时删除所述第二策略关联,所述第二策略关联是由所述第二拜访地策略控制网元为所述终端创建的。
作为一种实现方式,若所述第二移动性管理网元位于第二vPLMN,所述接收单元还用于接收来自所述第二拜访地策略控制网元的第一资源的标识,所述第一资源为所述第一策略关联对应的资源,所述终端的上下文中包括的第一策略关联的信息中还包括所述第一资源的标识;或者,
所述接收单元还用于接收来自所述第二拜访地策略控制网元的所述第一资源的信息,则所述第一策略关联的信息包括所述第二归属地策略控制网元的标识,具体为:所述第一策略关联的信息包括所述第一资源的信息,所述第一资源的信息包括所述第二归属地策略控制网元的标识和所述所述第一资源的标识。
作为一种实现方式,若所述第二移动性管理网元位于hPLMN,所述处理单元,还用于启动第二定时器;所述发送单元,还用于在所述接收单元在所述第二定时器超时前未接收到来自第二归属地策略控制网元的第二通知消息的情况下,向所述第二归属地策略控制网元发送第四删除请求消息,所述第二通知消息用于通知所述第二移动性管理网元,所述第二归属地策略控制网元接收到了用于请求更新所述第一策略关联的消息,所述第四删除请求消息用于请求所述第二归属地策略控制网元删除所述第一策略关联。
在又一个实施例中,当装置1300为上述实施例的第二拜访地策略控制网元或第二拜访地策略控制网元的芯片时,所述接收单元,用于接收来自第一移动性管理网元的第一更新请求消息,所述第一更新请求消息包括所述第一移动性管理网元的信息;所述处理单元,用于根据所述第一更新请求消息,将第二策略关联的信息中的第二移动性管理网元的信息更新为所述第一移动性管理网元的信息,所述第二策略关联是由所述第二拜访地策略控制网元为终端创建的;其中,所述第一移动性管理网元、所述第二拜访地策略控制网元和所述第二移动性管理网元位于同一个拜访地公共陆地移动网络vPLMN。
作为一种实现方式,所述接收单元,还用于在接收到所述第一更新请求消息之前,接收来自所述第二移动性管理网元的第一删除请求消息,所述第一删除请求消息用于请求删除所述第二策略关联;所述处理单元,还用于启动定时器;相应的,所述接收单元接收来 自第一移动性管理网元的第一更新请求消息,具体为:在所述定时器超时前,接收到来自所述第一移动性管理网元的所述第一更新请求消息。
作为一种实现方式,所述第一删除请求消息包括删除指示,所述删除指示用于指示所述第二拜访地策略控制网元在未接收到用于请求更新所述第二策略关联的消息时删除所述第二策略关联;所述第二拜访地策略控制网元启动定时器,包括:所述第二拜访地策略控制网元根据所述删除指示,启动所述定时器。
作为一种实现方式,所述第一删除请求消息包括移动性管理网元改变的指示,所述移动性管理网元改变的指示用于指示所述第一删除请求消息是由移动性管理网元的改变触发的;所述处理单元用于启动定时器,具体包括:所述处理单元根据所述移动性管理网元改变的指示,启动所述定时器。
作为一种实现方式,所述接收单元,还用于在接收到所述第一更新请求消息之后,接收来自所述第二移动性管理网元的第二删除请求消息,所述第二删除请求消息用于请求删除所述第二策略关联;所述处理单元还用于忽略所述第二删除请求消息。
作为一种实现方式,所述发送单元,用于向所述第二移动性管理网元发送第一通知消息,所述第一通知消息用于通知所述第二移动性管理网元,所述第二拜访地策略控制网元接收到了所述第一更新请求消息。
作为一种实现方式,所述第一更新请求消息还包括第二资源的标识,所述第二资源为所述第二策略关联对应的资源,则所述第一更新请求消息具体用于请求将所述第二资源中的所述第二策略关联的信息中的所述的第二移动性管理网元的信息更新为所述第一移动性管理网元的信息。
作为一种实现方式,所述发送单元,用于向第二归属地策略控制网元发送第二更新请求消息,所述第二更新请求消息用于请求所述第二归属地策略控制网元更新第一策略关联,所述第一策略关联是由所述第二归属地策略控制网元为终端创建的;其中,所述第二归属地策略控制网元位于hPLMN。
在又一个实施例中,当装置1300为上述实施例的第一拜访地策略控制网元或第一拜访地策略控制网元的芯片时,所述接收单元,用于接收来自第一移动性管理网元的建立请求消息,所述建立请求消息包括更新信息和所述第一移动性管理网元的信息,所述更新信息包括所述第二归属地策略控制网元的标识,所述更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息;所述处理单元,用于根据所述第一移动性管理网元的信息,为终端创建第三策略关联;所述发送单元,用于根据所述更新信息,向所述第二归属地策略控制网元发送更新请求消息,所述更新请求消息包括第一拜访地策略控制网元的信息,所述更新请求消息用于请求所述第二归属地策略控制网元将第一策略关联的信息中的第二拜访地策略控制网元的信息更新为所述第一拜访地策略控制网元的信息;其中,所述第一移动性管理网元和所述第一拜访地策略控制网元位于第一拜访地公共陆地移动网络vPLMN,所述第二移动性管理网元和所述第二拜访地策略控制网元位于第二vPLMN,所述第二归属地策略控制网元位于归属地拜访地公共陆地移动网络hPLMN。
作为一种实现方式,所述更新信息包括所述第二归属地策略控制网元的标识,具体为: 所述更新信息包括第一资源的信息,所述第一资源的信息包括所述第二归属地策略控制网元的标识和所述第一资源的标识,所述第一资源为所述第一策略关联对应的资源,所述更新请求消息用于请求所述第二归属地策略控制网元将所述第一策略关联的信息中的第二拜访地策略控制网元的信息更新为所述第一拜访地策略控制网元的信息,具体为:所述更新信息中的所述第一资源的信息用于指示所述第一拜访地策略控制网元请求所述第二归属地策略控制网元更新所述第一策略关联;或者,
所述更新信息还包括所述第一资源的标识,所述更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息,具体为:所述更新信息中的所述第一资源的标识和所述第二归属地策略控制网元的标识用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息;或者,
所述更新信息还包括指示信息,所述更新信息用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息,具体为:所述更新信息中的所述指示信息和所述第二归属地策略控制网元的标识用于指示所述第一拜访地策略控制网元向所述第二归属地策略控制网元发送更新请求消息。
在又一个实施例中,当装置1300为上述实施例的第二归属地策略控制网元或第二归属地策略控制网元的芯片时,在一个应用场景中,所述接收单元,用于接收来自第二拜访地策略控制网元的更新请求消息;所述处理单元,用于根据所述更新请求消息,更新第一策略关联,所述第一策略关联是由所述第二归属地策略控制网元为终端创建的;其中,所述第二拜访地策略控制网元位于vPLMN,所述第二归属地策略控制网元位于hPLMN。
在又一个应用场景中,所述接收单元,用于接收来自第一拜访地策略控制网元的更新请求消息,所述更新请求消息包括所述第一拜访地策略控制网元的信息;所述处理单元,用于将第一策略关联的信息中的第二拜访地策略控制网元的信息更新为所述第一拜访地策略控制网元的信息,所述第一策略关联是由所述第二归属地策略控制网元为所述终端创建的;
其中,所述第一拜访地策略控制网元位于第一拜访地拜访地公共陆地移动网络vPLMN,所述第二拜访地策略控制网元位于第二vPLMN,所述第二归属地策略控制网元位于归属地拜访地公共陆地移动网络hPLMN。
作为一种实现方式,所述发送单元,用于向所述第二拜访地策略控制网元发送第一通知消息,所述第一通知消息用于通知所述第二拜访地策略控制网元,所述第二归属地策略控制网元接收到了所述更新请求消息。
作为一种实现方式,所述发送单元,用于向第二移动性管理网元发送第二通知消息,所述第二通知消息用于通知所述第二移动性管理网元,所述第二归属地策略控制网元接收到了所述更新请求消息,所述第二移动性管理网元位于hPLMN。
应理解,该装置可以用于实现本发明实施例的方法中由第一移动性管理网元、第二移动性管理网元、第一拜访地策略控制网元、第二拜访地策略控制网元或第二归属地策略控制网元执行的步骤,相关特征可以参照上文,此处不再赘述。
具体的,图13中的接收单元1301、处理单元1303、以及发送单元1302的功能/实现过 程可以通过图12中的处理器1201调用存储器1203中存储的计算机执行指令来实现。或者,图13中的处理单元1303的功能/实现过程可以通过图12中的处理器1201调用存储器1203中存储的计算机执行指令来实现,图13中的接收单元1301和发送单元1302的功能/实现过程可以通过图12中的通信接口1204来实现。
可选的,当该装置1300是芯片或电路时,则接收单元1301和发送单元1302的功能/实现过程还可以通过管脚或电路等来实现。可选地,当该装置1300是芯片时,存储器1303可以为芯片内的存储单元,如寄存器、缓存等。当然,当该装置1300是移动性管理网元,如上述实施例中的第一移动性管理网元或第二移动性管理网元时,存储器1303可以是移动性管理网元内的位于芯片外部的存储单元,本申请实施例对此不作具体限定。当该装置1300是策略控制网元,如上述实施例中的第一拜访地策略控制网元、第二拜访地策略控制网元或第二归属地策略控制网元时,存储器1303可以是策略控制网元内的位于芯片外部的存储单元,本申请实施例对此不作具体限定。
本申请还提供一种系统,该系统包括上述图2或图8所示的实施例中的第二拜访地策略控制网元和第一移动性管理网元。进一步的,该系统还可以包括图2或图8所示的实施例中的第二移动性管理网元。进一步的,该系统还可以包括图2或图8所示的实施例中的第二归属地策略控制网元。
本申请还提供另一种系统,该系统包括上述图3或图9所示的实施例中的第二拜访地策略控制网元和第一移动性管理网元。进一步的,该系统还可以包括图3或图9所示的实施例中的第二移动性管理网元。进一步的,该系统还可以包括图3或图9所示的实施例中的第二归属地策略控制网元。
本申请还提供另一种系统,该系统包括上述图4或图10所示的实施例中的第一拜访地策略控制网元和第一移动性管理网元。进一步的,该系统还可以包括图4或图10所示的实施例中的第二移动性管理网元。进一步的,该系统还可以包括图4或图10所示的实施例中的第二归属地策略控制网元。进一步的,该系统还可以包括图4或图10所示的实施例中的第二拜访地策略控制网元。
本申请还提供另一种系统,该系统包括上述图5或图11所示的实施例中的第一拜访地策略控制网元和第一移动性管理网元。进一步的,该系统还可以包括图5或图11所示的实施例中的第二移动性管理网元。进一步的,该系统还可以包括图5或图11所示的实施例中的第二归属地策略控制网元。进一步的,该系统还可以包括图5或图11所示的实施例中的第二拜访地策略控制网元。
本申请还提供另一种系统,该系统包括上述图6所示的实施例中的第一拜访地策略控制网元和第一移动性管理网元。进一步的,该系统还可以包括图6所示的实施例中的第二移动性管理网元。进一步的,该系统还可以包括图6所示的实施例中的第二归属地策略控制网元。
本申请还提供另一种系统,该系统包括上述图7所示的实施例中的第一拜访地策略控制网元和第一移动性管理网元。进一步的,该系统还可以包括图7所示的实施例中的第二移动性管理网元。进一步的,该系统还可以包括图7所示的实施例中的第二归属地策略控制网元。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。
本申请实施例中所描述的各种说明性的逻辑单元和电路可以通过通用处理器,数字信号处理器,专用集成电路(ASIC),现场可编程门阵列(FPGA)或其它可编程逻辑装置,离散门或晶体管逻辑,离散硬件部件,或上述任何组合的设计来实现或操作所描述的功能。通用处理器可以为微处理器,可选地,该通用处理器也可以为任何传统的处理器、控制器、微控制器或状态机。处理器也可以通过计算装置的组合来实现,例如数字信号处理器和微处理器,多个微处理器,一个或多个微处理器联合一个数字信号处理器核,或任何其它类似的配置来实现。
本申请实施例中所描述的方法或算法的步骤可以直接嵌入硬件、处理器执行的软件单元、或者这两者的结合。软件单元可以存储于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动磁盘、CD-ROM或本领域中其它任意形式的存储媒介中。示例性地,存储媒介可以与处理器连接,以使得处理器可以从存储媒介中读取信息,并可以向存储媒介存写信息。可选地,存储媒介还可以集成到处理器中。处理器和存储媒介可以设置于ASIC中,ASIC可以设置于终端设备中。可选地,处理器和存储媒介也可以设置于终端设备中的不同的部件中。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (34)

  1. 一种策略控制方法,其特征在于,包括:
    第二拜访地策略控制网元接收来自第一移动性管理网元的第一更新请求消息,所述第一更新请求消息包括所述第一移动性管理网元的信息;
    所述第二拜访地策略控制网元根据所述第一更新请求消息,将第二策略关联的信息中的第二移动性管理网元的信息更新为所述第一移动性管理网元的信息,所述第二策略关联是由所述第二拜访地策略控制网元为终端创建的;
    其中,所述第一移动性管理网元、所述第二拜访地策略控制网元和所述第二移动性管理网元位于同一个拜访地公共陆地移动网络vPLMN。
  2. 根据权利要求1所述的方法,其特征在于,所述第二拜访地策略控制网元接收到所述第一更新请求消息之前,还包括:
    所述第二拜访地策略控制网元接收来自所述第二移动性管理网元的第一删除请求消息,所述第一删除请求消息用于请求删除所述第二策略关联;
    所述第二拜访地策略控制网元启动定时器;
    相应的,第二拜访地策略控制网元接收来自第一移动性管理网元的第一更新请求消息,具体为:
    在所述定时器超时前,所述第二拜访地策略控制网元接收到来自所述第一移动性管理网元的所述第一更新请求消息。
  3. 根据权利要求2所述的方法,其特征在于,所述第一删除请求消息包括删除指示,所述删除指示用于指示所述第二拜访地策略控制网元在未接收到用于请求更新所述第二策略关联的消息时删除所述第二策略关联;
    所述第二拜访地策略控制网元启动定时器,包括:
    所述第二拜访地策略控制网元根据所述删除指示,启动所述定时器。
  4. 根据权利要求2所述的方法,其特征在于,所述第一删除请求消息包括移动性管理网元改变的指示,所述移动性管理网元改变的指示用于指示所述第一删除请求消息是由移动性管理网元的改变触发的;
    所述第二拜访地策略控制网元启动定时器,包括:
    所述第二拜访地策略控制网元根据所述移动性管理网元改变的指示,启动所述定时器。
  5. 根据权利要求1所述的方法,其特征在于,所述第二拜访地策略控制网元接收到所述第一更新请求消息之后,还包括:
    所述第二拜访地策略控制网元接收来自所述第二移动性管理网元的第二删除请求消息,所述第二删除请求消息用于请求删除所述第二策略关联;
    所述第二拜访地策略控制网元忽略所述第二删除请求消息。
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    所述第二拜访地策略控制网元向所述第二移动性管理网元发送第一通知消息,所述第一通知消息用于通知所述第二移动性管理网元,所述第二拜访地策略控制网元接收到了所述第一更新请求消息。
  7. 根据权利要求1-6任一所述的方法,其特征在于,所述方法还包括:
    所述第一更新请求消息还包括第二资源的标识,所述第二资源为所述第二策略关联对应的资源,
    则所述第一更新请求消息具体用于请求将所述第二资源中的所述第二策略关联的信息中的所述的第二移动性管理网元的信息更新为所述第一移动性管理网元的信息。
  8. 根据权利要求1-7任一所述的方法,其特征在于,所述方法还包括:
    所述第二拜访地策略控制网元向第二归属地策略控制网元发送第二更新请求消息,所述第二更新请求消息用于请求所述第二归属地策略控制网元更新第一策略关联,所述第一策略关联是由所述第二归属地策略控制网元为终端创建的;
    其中,所述第二归属地策略控制网元位于归属地公共陆地移动网络hPLMN。
  9. 一种策略控制方法,其特征在于,包括:
    第一移动性管理网元接收来自第二移动性管理网元的终端的上下文,所述终端的上下文包括第二策略关联的信息,所述第二策略关联的信息包括第二拜访地策略控制网元的标识,所述第二策略关联是由所述第二拜访地策略控制网元为终端创建的;
    所述第一移动性管理网元若选择所述第二拜访地策略控制网元,则向所述第二拜访地策略控制网元发送更新请求消息,所述更新请求消息包括所述第一移动性管理网元的信息,所述更新请求消息用于请求所述第二拜访地策略控制网元将所述第二策略关联的信息中的第二移动性管理网元的信息更新为所述第一移动性管理网元的信息;
    其中,所述第一移动性管理网元、所述第二移动性管理网元和所述第二拜访地策略控制网元位于同一个拜访地公共陆地移动网络vPLMN。
  10. 根据权利要求9所述的方法,其特征在于,所述第二策略关联的信息包括第二拜访地策略控制网元的标识,具体为:所述第二策略关联的信息包括第二资源的信息,所述第二资源的信息包括所述第二拜访地策略控制网元的标识和所述第二资源的标识,所述第二资源为所述第二策略关联对应的资源,则所述更新请求消息具体用于请求将所述第二资源中的所述第二策略关联的信息中的所述第二移动性管理网元的信息更新为所述第一移动性管理网元的信息;或者,
    所述终端的上下文包括的所述第二策略关联的信息还包括所述第二资源的标识,则所述更新请求消息还包括所述第二资源的标识,所述更新请求消息具体用于请求将所述第二资源中的所述第二策略关联的信息中的所述第二移动性管理网元的信息更新为所述第一移动性管理网元的信息。
  11. 一种策略控制方法,其特征在于,包括:
    第二移动性管理网元接收来自第一移动性管理网元的请求消息,所述请求消息用于请求获取终端的上下文;
    所述第二移动性管理网元向所述第一移动性管理网元发送所述终端的上下文,所述终端的上下文包括第二策略关联的信息,所述第二策略关联的信息包括第二拜访地策略控制网元的标识,所述第二策略关联是由所述第二拜访地策略控制网元为所述终端创建的;
    其中,所述第一移动性管理网元、所述第二拜访地策略控制网元和所述第二移动性管理网元位于同一个拜访地公共陆地移动网络vPLMN。
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:
    所述第二移动性管理网元启动第一定时器;
    若所述第二移动性管理网元在所述第一定时器超时前接收到来自所述第二拜访地策略控制网元的第一通知消息,所述第一通知消息用于通知所述第二移动性管理网元,所述第二拜访地策略控制网元接收到了用于请求更新所述第二策略关联的消息,则所述第二移动性管理网元停止所述第一定时器。
  13. 根据权利要求11所述的方法,其特征在于,所述方法还包括:
    所述第二移动性管理网元启动第一定时器;
    若所述第二移动性管理网元在所述第一定时器超时前未接收到来自所述第二拜访地策略控制网元的第一通知消息,所述第一通知消息用于通知所述第二移动性管理网元,所述第二拜访地策略控制网元接收到了用于请求更新所述第二策略关联的消息,则所述第二移动性管理网元向所述第二拜访地策略控制网元发送第一删除请求消息,所述第一删除请求消息用于请求所述第二拜访地策略控制网元删除所述第二策略关联,以及用于指示所述第二拜访地策略控制网元请求第二归属地策略控制网元删除第一策略关联,所述第一策略关联是由所述第二归属地策略控制网元为所述终端创建的;
    其中,所述第二归属地策略控制网元位于归属地公共陆地移动网络hPLMN。
  14. 根据权利要求11所述的方法,其特征在于,所述方法还包括:
    所述第二移动性管理网元向所述第二拜访地策略控制网元发送第二删除请求消息,所述第二删除请求消息用于指示所述第二拜访地策略控制网元在未接收到用于请求更新所述第二策略关联的消息时删除所述第二策略关联。
  15. 一种装置,应用于第二拜访地策略控制网元,其特征在于,包括:接收单元和处理单元;
    所述接收单元,用于接收来自第一移动性管理网元的第一更新请求消息,所述第一更新请求消息包括所述第一移动性管理网元的信息;
    所述处理单元,用于根据所述第一更新请求消息,将第二策略关联的信息中的第二移动性管理网元的信息更新为所述第一移动性管理网元的信息,所述第二策略关联是由所述第二拜访地策略控制网元为终端创建的;
    其中,所述第一移动性管理网元、所述第二拜访地策略控制网元和所述第二移动性管理网元位于同一个拜访地公共陆地移动网络vPLMN。
  16. 根据权利要求15所述的装置,其特征在于,所述接收单元,还用于在接收到所述第一更新请求消息之前,接收来自所述第二移动性管理网元的第一删除请求消息,所述第一删除请求消息用于请求删除所述第二策略关联;
    所述处理单元,还用于启动定时器;
    相应的,所述接收单元接收来自第一移动性管理网元的第一更新请求消息,具体为:在所述定时器超时前,接收到来自所述第一移动性管理网元的所述第一更新请求消息。
  17. 根据权利要求15所述的装置,其特征在于,所述接收单元,还用于在接收到所述第一更新请求消息之后,接收来自所述第二移动性管理网元的第二删除请求消息,所述第二删除请求消息用于请求删除所述第二策略关联;
    所述处理单元还用于忽略所述第二删除请求消息。
  18. 根据权利要求15所述的装置,其特征在于,所述装置还包括发送单元,用于向所述第二移动性管理网元发送第一通知消息,所述第一通知消息用于通知所述第二移动性管理网元,所述第二拜访地策略控制网元接收到了所述第一更新请求消息。
  19. 根据权利要求15-18任一所述的装置,其特征在于,所述第一更新请求消息还包括第二资源的标识,所述第二资源为所述第二策略关联对应的资源,则所述第一更新请求消息具体用于请求将所述第二资源中的所述第二策略关联的信息中的所述的第二移动性管理网元的信息更新为所述第一移动性管理网元的信息。
  20. 根据权利要求15-19任一所述的装置,其特征在于,所述装置还包括发送单元,用于向第二归属地策略控制网元发送第二更新请求消息,所述第二更新请求消息用于请求所述第二归属地策略控制网元更新第一策略关联,所述第一策略关联是由所述第二归属地策略控制网元为终端创建的;
    其中,所述第二归属地策略控制网元位于归属地公共陆地移动网络hPLMN。
  21. 一种装置,应用于第一移动性管理网元,其特征在于,包括:接收单元、处理单元和发送单元;
    所述接收单元,用于接收来自第二移动性管理网元的终端的上下文,所述终端的上下文包括第二策略关联的信息,所述第二策略关联的信息包括第二拜访地策略控制网元的标识,所述第二策略关联是由所述第二拜访地策略控制网元为终端创建的;
    所述处理单元,用于选择所述第二拜访地策略控制网元;
    所述发送单元,用于在所述处理单元选择所述第二拜访地策略控制网元的情况下,向所述第二拜访地策略控制网元发送更新请求消息,所述更新请求消息包括所述第一移动性管理网元的信息,所述更新请求消息用于请求所述第二拜访地策略控制网元将所述第二策略关联的信息中的第二移动性管理网元的信息更新为所述第一移动性管理网元的信息;
    其中,所述第一移动性管理网元、所述第二移动性管理网元和所述第二拜访地策略控制网元位于同一个拜访地公共陆地移动网络vPLMN。
  22. 一种装置,应用于第二移动性管理网元,其特征在于,包括:接收单元和发送单元;
    所述接收单元,用于接收来自第一移动性管理网元的请求消息,所述请求消息用于请求获取终端的上下文;
    所述发送单元,用于向所述第一移动性管理网元发送所述终端的上下文,所述终端的上下文包括第二策略关联的信息,所述第二策略关联的信息包括第二拜访地策略控制网元的标识,所述第二策略关联是由所述第二拜访地策略控制网元为所述终端创建的;
    其中,所述第一移动性管理网元、所述第二拜访地策略控制网元和所述第二移动性管理网元位于同一个拜访地公共陆地移动网络vPLMN。
  23. 根据权利要求22所述的装置,其特征在于,所述装置还包括处理单元,用于启动第一定时器;
    则所述处理单元,还用于在所述接收单元在所述第一定时器超时前接收到来自所述第二拜访地策略控制网元的第一通知消息的情况下,停止所述第一定时器,所述第一通知消 息用于通知所述第二移动性管理网元,所述第二拜访地策略控制网元接收到了用于请求更新所述第二策略关联的消息。
  24. 根据权利要求22所述的装置,其特征在于,所述装置还包括处理单元,用于启动第一定时器;
    所述发送单元,还用于在所述接收单元在所述第一定时器超时前未接收到来自所述第二拜访地策略控制网元的第一通知消息的情况下,向所述第二拜访地策略控制网元发送第一删除请求消息,所述第一通知消息用于通知所述第二移动性管理网元,所述第二拜访地策略控制网元接收到了用于请求更新所述第二策略关联的消息,所述第一删除请求消息用于请求所述第二拜访地策略控制网元删除所述第二策略关联,以及用于指示所述第二拜访地策略控制网元请求第二归属地策略控制网元删除第一策略关联,所述第一策略关联是由所述第二归属地策略控制网元为所述终端创建的;
    其中,所述第二归属地策略控制网元位于归属地公共陆地移动网络hPLMN。
  25. 根据权利要求22所述的装置,其特征在于,所述发送单元,还用于向所述第二拜访地策略控制网元发送第二删除请求消息,所述第二删除请求消息用于指示所述第二拜访地策略控制网元在未接收到用于请求更新所述第二策略关联的消息时删除所述第二策略关联。
  26. 一种系统,其特征在于,包括如权利要求15-20任一所述的装置,和,如权利要求21所述的装置。
  27. 根据权利要求26所述的系统,其特征在于,所述系统还包括如权利要求22-25任一所述的装置。
  28. 一种第二拜访地策略控制网元,其特征在于,包括:
    存储器,用于存储计算机程序;
    处理器,用于从所述存储器调用并运行所述计算机程序,以执行如权利要求1-8中任一项所述的策略控制方法。
  29. 一种第一移动性管理网元,其特征在于,包括:
    存储器,用于存储计算机程序;
    处理器,用于从所述存储器调用并运行所述计算机程序,以执行如权利要求9-10中任一项所述的策略控制方法。
  30. 一种第二移动性管理网元,其特征在于,包括:
    存储器,用于存储计算机程序;
    处理器,用于从所述存储器调用并运行所述计算机程序,以执行如权利要求11-14中任一项所述的策略控制方法。
  31. 一种处理器,其特征在于,用于执行如权利要求1-8中任一项,或权利要求9-10中任一项,或权利要求11-14中任一项所述的策略控制方法。
  32. 一种计算机可读存储介质,包括计算机程序,当其在计算机上运行时,使得所述计算机执行如权利要求1-8中任一项,或权利要求9-10中任一项,或权利要求11-14中任一项所述的策略控制方法。
  33. 一种计算机程序产品,所述计算机程序产品包括计算机程序,当所述计算机程序在计算机上运行时,使得计算机执行如权利要求1-8中任一项,或权利要求9-10中任一项,或权利要求11-14中任一项所述的策略控制方法。
  34. 一种用来执行权利要求1-8中任一项,或权利要求9-10中任一项,或权利要求11-14中任一项所述的策略控制方法的装置。
PCT/CN2019/083635 2018-05-16 2019-04-22 一种策略控制方法、装置及系统 WO2019218847A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810470323.5 2018-05-16
CN201810470323.5A CN110505663B (zh) 2018-05-16 2018-05-16 一种策略控制方法、装置及系统

Publications (1)

Publication Number Publication Date
WO2019218847A1 true WO2019218847A1 (zh) 2019-11-21

Family

ID=68539452

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/083635 WO2019218847A1 (zh) 2018-05-16 2019-04-22 一种策略控制方法、装置及系统

Country Status (2)

Country Link
CN (1) CN110505663B (zh)
WO (1) WO2019218847A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022204973A1 (zh) * 2021-03-30 2022-10-06 北京小米移动软件有限公司 一种策略确定方法、策略确定装置及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114258084A (zh) * 2020-09-23 2022-03-29 中兴通讯股份有限公司 QoS流更新方法、设备及存储介质
CN115529636A (zh) * 2021-06-25 2022-12-27 华为技术有限公司 一种策略控制的方法、装置和系统
CN115426698A (zh) * 2022-08-30 2022-12-02 中国联合网络通信集团有限公司 路由选择策略的配置方法、装置以及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568095A (zh) * 2008-04-26 2009-10-28 华为技术有限公司 非3gpp接入网关与pcrf关联的方法、设备及系统
CN101969632A (zh) * 2009-07-28 2011-02-09 中兴通讯股份有限公司 一种漫游场景下的策略计费控制实现方法
CN102883297A (zh) * 2011-07-12 2013-01-16 中兴通讯股份有限公司 一种激活终端的方法和系统
US20170311304A1 (en) * 2010-04-01 2017-10-26 Hon Hai Precision Industry Co., Ltd. Network service exposure method and apparatus utilizing the same
US20170339609A1 (en) * 2016-05-17 2017-11-23 Lg Electronics Inc. Method and apparatus for determining pdu session identity in wireless communication system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10681150B2 (en) * 2016-03-31 2020-06-09 Huawei Technologies Co., Ltd. Systems and methods for management plane—control plane interaction in software defined topology management
US9967801B2 (en) * 2016-06-10 2018-05-08 Lg Electronics Inc. Method and apparatus for receiving authorization information on network slice
CN107018542A (zh) * 2017-03-27 2017-08-04 中兴通讯股份有限公司 网络系统中状态信息的处理方法、装置及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101568095A (zh) * 2008-04-26 2009-10-28 华为技术有限公司 非3gpp接入网关与pcrf关联的方法、设备及系统
CN101969632A (zh) * 2009-07-28 2011-02-09 中兴通讯股份有限公司 一种漫游场景下的策略计费控制实现方法
US20170311304A1 (en) * 2010-04-01 2017-10-26 Hon Hai Precision Industry Co., Ltd. Network service exposure method and apparatus utilizing the same
CN102883297A (zh) * 2011-07-12 2013-01-16 中兴通讯股份有限公司 一种激活终端的方法和系统
US20170339609A1 (en) * 2016-05-17 2017-11-23 Lg Electronics Inc. Method and apparatus for determining pdu session identity in wireless communication system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022204973A1 (zh) * 2021-03-30 2022-10-06 北京小米移动软件有限公司 一种策略确定方法、策略确定装置及存储介质

Also Published As

Publication number Publication date
CN110505663B (zh) 2021-03-23
CN110505663A (zh) 2019-11-26

Similar Documents

Publication Publication Date Title
WO2019218847A1 (zh) 一种策略控制方法、装置及系统
US11659454B2 (en) Methods, systems and apparatuses for management or network functions
JP7272736B2 (ja) サービス加入方法、当該方法を実行するためのチップ、情報伝達装置およびプログラム、並びにネットワーク機能ネットワーク要素
US12075347B2 (en) Managing VPLMN configuration updates in the UE due to home PLMN configuration changes
WO2021017999A1 (zh) 策略控制功能网元的选择方法、装置、系统及存储介质
RU2527755C2 (ru) Способ определения возможностей мобильной станции (варианты), мобильная и базовая станции
US20230388389A1 (en) Communication method and communication apparatus
WO2019218762A1 (zh) 一种策略控制方法、装置及系统
WO2020034817A1 (zh) 策略控制方法、设备及系统
WO2019120109A1 (zh) 一种切片信息更新方法及装置
WO2020001465A1 (zh) 管理用户数据的方法和装置
WO2022014291A2 (en) Service continuity across network slices
WO2022267824A1 (zh) 一种策略控制的方法、装置和系统
RU2783811C2 (ru) Способ подписки на услуги и устройство
WO2022032891A1 (zh) 通信方法及装置
EP3981181B1 (en) Controlling and restricting mof user identities per ue
WO2016127366A1 (zh) 无线接入方法及用户设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19803372

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19803372

Country of ref document: EP

Kind code of ref document: A1