Method, apparatus, related device, and storage medium for updating route selection policy
View Patent ↗A method, apparatus, a related device, and a storage medium for updating route selection policy. A user equipment may receive a first route selection policy from a network device, and may include a first policy generation attribute. It may be determined based on the first policy generation attribute whether route selection policy update needs to be performed, and based on a determination that it should be performed, a stored second route selection policy may be updated based on the first route selection policy.
1 . A method for updating a route selection policy, performed by a user equipment having at least one processor, the method comprising:
receiving a first route selection policy from a network device, the first route selection policy comprising a first policy generation attribute, the first policy generation attribute including a first version number parameter or a first timestamp parameter, the first timestamp parameter indicating a generation time of the first route selection policy;
determining whether a route selection policy update needs to be performed by comparing the first policy generation attribute with a second policy generation attribute, the second policy generation attribute including a second version number parameter or a second timestamp parameter, the second timestamp parameter indicating a generation time of a second route selection policy,
wherein the second route selection policy comprises the second policy generation attribute and is stored in the user equipment,
wherein the comparing the first policy generation attribute with the second policy generation attribute comprises:
comparing the first version number parameter with the second version number parameter; or
comparing the first timestamp parameter with the second timestamp parameter;
based on the first policy generation attribute being the same as the second policy generation attribute, determining that the route selection policy update does not need to be performed;
based on the first policy generation attribute being different from the second policy generation attribute, determining that the route selection policy update needs to be performed; and
based on determining that the route selection policy update needs to be performed, updating the second route selection policy based on the first route selection policy,
wherein the updating the stored second route selection policy comprises:
replacing the second route selection policy with the first route selection policy; or
determining updated content in the first route selection policy relative to the second route selection policy and replacing corresponding content in the second route selection policy with the updated content.
2 . The method according to claim 1 , further comprising:
receiving a first policy section identifier (PSI) of the first route selection policy from the network device; and
comparing the first PSI with a second PSI of the second route selection policy.
3 . The method according to claim 2 , further comprising:
based on the first PSI being the same as the second PSI and the first policy attribute being different from the second policy generation attribute, determining that the route selection policy update needs to be performed; or
based on the first PSI being the same as the second PSI and the first policy generation attribute being the same as the second policy generation attribute, determining that the route selection policy update does not need to be performed.
4 . The method according to claim 1 , the method further comprising:
reporting the second policy generation attribute to the network device,
wherein the network device is configured to;
determine whether the route selection policy update needs to be performed on the user equipment based on the second policy generation attribute; and
deliver the first route selection policy to the user equipment after determining that the route selection policy update needs to be performed on the user equipment.
5 . The method according to claim 4 , further comprising:
reporting a second policy section identifier (PSI) of the second route selection policy to the network device, wherein the network device is further configured to determine whether the route selection policy update needs to be performed on the user equipment based on the second PSI.
6 . An apparatus for updating a route selection policy, the apparatus comprising:
at least one memory containing program code; and
at least one processor configured to execute the program code, the program code comprising:
first receiving code configured to cause the at least one processor to receive a first route selection policy from a network device, the first route selection policy comprising a first policy generation attribute, the first policy generation attribute being a first version number parameter or a first timestamp parameter, the first timestamp parameter indicating a generation time of the first route selection policy;
first comparing code configured to cause the at least one processor to compare the first policy generation attribute with a second policy generation attribute, the second policy generation attribute being a second version number parameter or a second timestamp parameter, the second timestamp parameter indicating a generation time of a second route selection policy;
first determining code configured to cause the at least one processor to:
determine whether a route selection policy update needs to be performed,
wherein the second route selection policy comprises the second policy generation attribute and is stored in the user equipment, and
wherein the first policy generation attribute is compared with the second policy generation attribute by (i) comparing the first version number parameter with the second version number parameter or (ii) comparing the first timestamp parameter with the second timestamp parameter,
second determining code configured to cause the at least one processor to:
based on the first policy generation attribute being the same as the second policy generation attribute, determine that the route selection policy update does not need to be performed,
based on the first policy generation attribute being different from the second policy generation attribute, determine that the route selection policy update needs to be performed; and
first updating code configured to cause the at least one processor to, based on determining that the route selection policy update needs to be performed, update the second route selection policy based on the first route selection policy,
wherein the second route selection policy is updated by:
replacing the second route selection policy with the first route selection policy; or
determining updated content in the first route selection policy relative to the second route selection policy and replacing corresponding content in the second route selection policy with the updated content.
7 . The apparatus according to claim 6 , wherein the program code further comprises:
second receiving code configured to cause the at least one processor to receive a first policy section identifier (PSI) of the first route selection policy from the network device; and
second comparing code configured to cause the at least one processor to compare the first PSI with a second PSI of the second route selection policy.
8 . The apparatus according to claim 7 , the program code further comprises:
second determining code configured to cause the at least one processor to;
based on the first PSI being the same as the second PSI and the first policy generation attribute being different from the second policy generation attribute, determine that the route selection policy update needs to be performed; or
based on the first PSI being the same as the second PSI and the first policy generation attribute being the same as the second policy generation attribute, determine that the route selection policy update does not need to be performed.
9 . The apparatus according to claim 6 , wherein the program code further comprises:
first reporting code configured to cause the at least one processor to report the second policy generation attribute to the network device, wherein the network device is configured to determine whether the route selection policy update needs to be performed on the user equipment based on the second policy generation attribute; and
first delivery code configured to cause the at least one processor to deliver, by the network device, the first route selection policy to the user equipment after determining that the route selection policy update needs to be performed on the user equipment.
10 . A non-transitory computer-readable medium for vehicle control containing program code that, when executed by at least one processor, causes the at least one processor to:
receive a first route selection policy from a network device, the first route selection policy comprising a first policy generation attribute, the first policy generation attribute being a first version number parameter or a first timestamp parameter, the first timestamp parameter indicating a generation time of the first route selection policy;
compare the first policy generation attribute with a second policy generation attribute, the second policy generation attribute being a second version number parameter or a second timestamp parameter, the second timestamp parameter indicating a generation time of a second route selection policy,
wherein the second route selection policy comprises the second policy generation attribute, and
wherein the first policy generation attribute is compared with the second policy generation attribute by (i) comparing the first version number parameter with the second version number parameter or (ii) comparing the first timestamp parameter with the second timestamp parameter;
based on the first policy generation attribute being the same as the second policy attribute, determine that a route selection policy update does not need to be performed;
based on the first policy generation attribute being different from the second policy generation attribute, determine that the route selection policy update needs to be performed; and
based on determining that the route selection policy update needs to be performed, update the second route selection policy based on the first route selection policy,
wherein the second route selection policy is updated by:
replacing the second route selection policy with the first route selection policy; or
determining updated content in the first route selection policy relative to the second route selection policy and replacing corresponding content in the second route selection policy with the updated content.