WO2023124983A1 - 路由选择策略的更新方法、装置、相关设备及存储介质 - Google Patents

路由选择策略的更新方法、装置、相关设备及存储介质 Download PDF

Info

Publication number
WO2023124983A1
WO2023124983A1 PCT/CN2022/138734 CN2022138734W WO2023124983A1 WO 2023124983 A1 WO2023124983 A1 WO 2023124983A1 CN 2022138734 W CN2022138734 W CN 2022138734W WO 2023124983 A1 WO2023124983 A1 WO 2023124983A1
Authority
WO
WIPO (PCT)
Prior art keywords
policy
routing
user equipment
generation attribute
psi
Prior art date
Application number
PCT/CN2022/138734
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 腾讯科技(深圳)有限公司
Priority to EP22914238.5A priority Critical patent/EP4387335A1/en
Publication of WO2023124983A1 publication Critical patent/WO2023124983A1/zh
Priority to US18/487,906 priority patent/US20240049101A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/248Connectivity information update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

Definitions

  • the present application relates to the technical field of communications, and in particular to a method, device, related equipment and storage medium for updating a routing policy.
  • a user equipment In a communication system, a user equipment (user equipment, UE) can obtain a terminal equipment route selection policy (UE route selection policy, URSP) from a network device, so as to perform routing based on the terminal equipment route selection policy (referred to as a route selection policy in this application).
  • UE route selection policy UE route selection policy, URSP
  • URSP terminal equipment route selection policy
  • PDU Protocol Data Unit
  • the UE each time after receiving the URSP sent by the network device, the UE usually directly uses the URSP sent by the network device to update the stored URSP.
  • the UE may be situations where the URSP delivered by the network device is the same as the URSP stored in the UE, but the UE cannot determine whether the URSP delivered by the network device is the same as the URSP stored in the UE. In this case, updating the URSP in such an update manner will result in a waste of processing resources on the UE side.
  • the network device cannot determine whether the URSP stored by the UE is the latest URSP, so it cannot determine whether the URSP of the UE needs to be updated.
  • the embodiments of the present application provide a routing strategy update method, device, related equipment, and storage medium, which can optimize the routing strategy update mechanism, realize timely and effective updating of the routing strategy, and avoid waste of processing resources.
  • the embodiment of the present application provides a method for updating a routing policy, executed by a user equipment, including:
  • the stored second routing policy is updated using the first routing policy.
  • an embodiment of the present application provides a method for updating a routing policy, executed by a network device, including:
  • the user equipment If it is determined according to the second policy generation attribute that the user equipment needs to be updated with a routing policy, delivering a first routing policy to the user equipment, where the first routing policy includes the first policy generation attribute;
  • the first policy generation attribute is used for the user equipment to determine whether to update the routing policy; when the user equipment determines that the routing policy needs to be updated, the first routing policy is used to update the The second routing policy stored in the user equipment.
  • an embodiment of the present application provides an apparatus for updating a routing policy
  • the apparatus may run in a user equipment, and the apparatus may include:
  • a receiving unit configured to receive a first routing policy issued by a network device, where the first routing policy includes a first policy generation attribute;
  • An updating unit configured to use the first routing strategy to update the stored second routing strategy when it is determined according to the first strategy generation attribute that the routing strategy needs to be updated.
  • an embodiment of the present application provides an apparatus for updating a routing policy
  • the apparatus may run in a network device, and the apparatus may include:
  • a receiving unit configured to receive the second policy generation attribute reported by the user equipment
  • An issuing unit configured to issue a first routing policy to the user equipment if it is determined according to the second policy generation attribute that the user equipment needs to be updated with a routing policy, the first routing policy includes first policy generation attribute;
  • the first policy generation attribute is used for the user equipment to determine whether to update the routing policy; when the user equipment determines that the routing policy needs to be updated, the first routing policy is used to update the The second routing policy stored in the user equipment.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded and executed by a processor as described above The update method of the routing policy described above.
  • an embodiment of the present application provides a computer program product, where the computer program product includes a computer program; when the computer program is executed by a processor, any method for updating a routing selection policy mentioned above is implemented.
  • an embodiment of the present application provides a user equipment, including a memory, a processor, and a computer program stored on the memory, and the processor executes the computer program to implement the method for updating the routing policy as described above .
  • an embodiment of the present application provides a network device, including a memory, a processor, and a computer program stored on the memory, and the processor executes the computer program to implement the method for updating the routing policy as described above .
  • Fig. 1a is a system architecture diagram of a communication system provided by an embodiment of the present application.
  • FIG. 1b is a system architecture diagram of another communication system provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for updating a routing strategy provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a user equipment determining whether to update a routing policy provided by an embodiment of the present application
  • FIG. 4 is a schematic flowchart of a method for updating a routing strategy provided by another embodiment of the present application.
  • FIG. 5a is a schematic diagram of a network device determining whether to update a routing policy provided by another embodiment of the present application.
  • FIG. 5b is a schematic diagram of another network device determining whether to update a routing policy provided by another embodiment of the present application.
  • FIG. 6 is a schematic flow chart of a method for updating a routing policy provided in yet another embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an update device for a routing strategy provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an update device for a routing strategy provided by another embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a user equipment provided in an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • the routing selection policy (UE Route Selection Policy, URSP) can be understood as a policy for the UE side to select different PDU sessions for service flows, which may contain multiple URSP rules (Rules).
  • the URSP rules may include, but are not limited to: traffic descriptors (Traffic descriptors) and route selection descriptors (Route Selection descriptors, RSDs), where the data traffic descriptors may include application identifiers (Application identifiers), network protocols (Internet Protocol, IP) descriptor, non-IP descriptor, etc.
  • the URSP of each UE may be identified by a UE policy section identifier (UPSI), where the UPSI may also be referred to as PSI (policy section identifier) for short.
  • UPSI UE policy section identifier
  • the embodiment of the present application aims at updating the routing strategy, and proposes a strategy updating scheme to optimize the updating mechanism of the routing strategy, realize timely and effective updating of the routing strategy, and avoid waste of processing resources.
  • the policy update scheme can be applied to various communication systems; for example: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, broadband code division Multiple Access (Wideband Code Division Multiple Access, WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system , LTE Time Division Duplex (Time Division Duplex, TDD), Universal Mobile Telecommunications System (Universal Mobile Telecommunication System, UMTS), New Radio (New Radio, NR) system, Worldwide Interoperability for Microwave Access (WiMAX) Communication system, fifth generation mobile communication technology (5th Generation Mobile Communication Technology, 5G) system, or future mobile communication technology system, etc.
  • GSM Global System of Mobile communication
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • GPRS General Packet Radio Service
  • LTE Long Term Evolution
  • FDD Frequency Division Duplex
  • TDD Time Division Duplex
  • TDD Time Division Duplex
  • the communication system to which the policy update solution proposed in the embodiment of the present application is applied may include at least: a user equipment (UE) 11 and a network device 12 .
  • UE11 may be a mobile or fixed device, and UE11 may be configured to communicate via a wired interface or via a wireless interface, which is not limited.
  • UE11 may comprise any of the following: an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user device.
  • the access terminal can be a cellular phone, a cordless phone, a Session Initiation Protocol (Session Initiation Protocol, SIP) phone, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device, or connected to a wireless Other processing devices for modems, vehicle-mounted devices, wearable devices, Internet of Things (IoT) devices, terminal devices in 5G networks, or terminal devices in the future evolution of Public Land Mobile Networks (Public Land Mobile Network, PLMN) wait.
  • SIP Session Initiation Protocol
  • PDA Personal Digital Assistant
  • IoT Internet of Things
  • 5G networks Public Land Mobile Network
  • PLMN Public Land Mobile Network
  • the network device 12 refers to a device that can send the URSP to the UE11, for example, the network device 12 may be a core network device on the network side.
  • the core network equipment mentioned here can be 5G core network equipment, such as Policy Control Function (Policy Control Function, PCF), Access and Mobility Management Function (Access and Mobility Management Function, AMF), or session management Function (Session Management Function, SMF) and other network elements.
  • the core network equipment mentioned here can also be the Evolved Packet Core (EPC) equipment of the LTE network, such as the session management function + core network data gateway (Session Management Function + Core Packet Gateway, SMF + PGW-C) equipment.
  • EPC Evolved Packet Core
  • the network device 12 may also be other devices capable of communicating with the UE11. Not limited. Moreover, for the convenience of explanation, the following descriptions will be made by taking the network device as an example of PCF.
  • the communication system to which this embodiment of the present application is applied may further include an access network device 13 .
  • the access network device 13 can provide communication coverage for a specific geographical area, and communicate with user equipment located in the coverage area, and the access network device 13 can communicate with core network equipment.
  • the UE11 is located within the coverage of the access network device 13 , and the UE11 and the network device 12 perform data transmission through the access network device 13 .
  • the access network device 13 may be a network-side device in a 5G network, a network-side device in a PLMN, a radio access network (Radio Access Network, RAN) or a base station (gNB) in an NR system, a GSM system Or network-side equipment (Base Transceiver Station, BTS) in CDMA system, network-side equipment (NodeB, NB) in WCDMA system, evolved network equipment (Evolutional Node B, eNB or eNodeB) in LTE system, cloud wireless access Wireless controllers, mobile switching centers, relay stations, access points, in-vehicle devices, wearable devices, hubs, switches, bridges or routers in the access network (Cloud Radio Access Network, CRAN).
  • RAN Radio Access Network
  • gNB base station
  • BTS Base Transceiver Station
  • NodeB, NB network-side equipment
  • Evolutional Node B, eNB or eNodeB evolved network equipment
  • cloud wireless access Wireless controllers mobile switching centers, relay
  • FIG. 1 a the communication system applied in the embodiment of the present application may be shown in FIG. 1 a .
  • FIG. 1a only exemplarily shows the system architecture of the communication system to which the embodiment of the present application is applied, and does not limit it.
  • the communication system shown in FIG. 1 a only exemplarily shows two UEs 11 , one network device 12 and one access network device 13 .
  • the communication system may also include a greater number of access network devices 13, and the coverage of each access network device 13 may include other numbers of terminal devices; or, the communication system may also include The greater number of network devices 12 is not limited in this embodiment of the present application.
  • the communication system may also include a unified data storage function (Unified Data Repository, UDR), a receiving core access and mobility management function (Core Access and Mobility Management Function, AMF), a session management function (Session Management Function, SMF) , User Plane Function (User Plane Function, UPF), Unified Data Management (Unified Data Management, UDM), Signaling Gateway (Signaling Gateway, SGW) and other network elements, the embodiments of this application are not limited.
  • UDR14 the network device 12 can communicate with the UDR14, as shown in FIG.
  • UE11 can trigger the URSP reporting process; the reporting process can be triggered during the initial registration process of UE11, or it can be triggered by UE11 from the EPS (Evolved Packet System, Evolved Packet System, Evolved Packet System) System) is triggered in the mobility management process when switching to the 5G network, or it may be triggered in other processes, which is not limited.
  • EPS Evolved Packet System
  • Evolved Packet System Evolved Packet System
  • Evolved Packet System Evolved Packet System
  • the UE11 can use the initial registration process to retrieve the URSP; that is, when UE11 finds that the internally stored URSP is lost, invalid or missing, it also The reporting process can be triggered.
  • UE11 When UE11 executes the reporting process, UE11 can include its saved PSI in the reporting process, so as to report the saved PSI to PCF12; after PCF12 receives the PSI reported by UE11, it can obtain the PSI corresponding to UE11 from UDR14. Then compare whether the PSI retrieved from UDR14 is the same as the PSI reported by UE11. If they are different, use the URSP corresponding to the UE stored in UDR14 as the updated URSP, and the corresponding PSI stored in UDR14 The updated PSI is sent to UE11, so that UE11 can update the routing policy.
  • PSI can include the following two parts:
  • this part includes the identification of the PLMN comprising the PCF providing the routing strategy;
  • Routing Policy Section Code (UE policy section code, UPSC), which contains a unique value in the PLMN selected by the PCF.
  • the PCF determines that the URSP stored by the UE is the latest URSP (that is, the URSP rule stored by the UE is the latest rule) when the PCF compares the PSI. It is judged that there is no need to update the URSP in the UE, which leads to the problem of URSP mismatch. Moreover, in practical applications, it is also possible that after the PCF delivers the URSP, it may repeatedly deliver the URSP for some reasons, resulting in that the URSP delivered by the PCF is the same as the URSP stored in the UE. In this case, if the UE directly uses the URSP issued by the PCF to update the stored URSP, processing resources will be wasted.
  • the policy update solution proposed by the embodiment of the present application introduces a policy generation attribute into URSP (Routing Policy) or PSI.
  • the policy generation attribute mentioned here refers to: when a routing policy is generated, a parameter assigned to the routing policy and used to uniquely identify the routing policy.
  • the policy generation attribute may include one or more of the following: a version number parameter of the routing policy, a time stamp parameter of the routing policy, and the like.
  • the version number parameter of the routing strategy can be assigned for the URSP when the PCF updates the rules in the URSP each time; and the version number parameter assigned each time can be added by adding one (+ 1) It is generated by operation, or it may be generated by a random algorithm.
  • a time stamp parameter is used to indicate the generation time of the corresponding routing policy, that is, the time stamp parameter of the routing policy may be assigned to the URSP based on the current system time each time the PCF updates the rules in the URSP.
  • the UE can report the stored policy generation attribute corresponding to the URSP to the PCF through the reporting process, so that the PCF receives the policy generation reported by the UE attribute, by comparing whether the latest policy generation attribute corresponding to the UE in the UDR is the same as the policy generation attribute reported by the UE, it can be accurately judged whether the URSP in the UE needs to be updated.
  • the URSP corresponding to the UE stored in the UDR and the corresponding PSI are sent to the UE so that the UE can update the routing strategy, which can avoid misjudgment of the routing strategy by comparing the two parts of the PSI There is no need to update, thereby reducing the mismatch problem of the routing selection strategy, and realizing the timely update of the routing selection strategy.
  • the UE can also determine whether to use the PCF issued by the PCF by comparing whether the policy generation attributes in the URSP or PSI issued by the PCF are the same as the policy generation attributes stored in the UE.
  • the URSP executes the policy update operation, which can ensure the effectiveness of the policy update operation, avoid waste of processing resources, and realize effective update of the URSP. It can be seen that the policy update scheme proposed in the embodiment of the present application can effectively optimize the update mechanism of the routing policy by introducing the policy generation attribute into URSP or PSI, realize timely and effective update of the routing policy, and avoid processing Waste of resources.
  • the above is only taking the communication system shown in FIG. 1b as an example to illustrate the general principle of the policy update solution proposed in the embodiment of the present application, and it is not limited thereto.
  • the PCF instead of storing the URSP and corresponding PSI involved in each UE in the UDR, the PCF stores these data in its own storage space; in this case, the PCF can directly obtain the data from its own storage space
  • the UE corresponds to the latest URSP and corresponding PSI, policy generation attributes and other data, so as to perform a series of processing based on the acquired data.
  • an embodiment of the present application proposes a method for updating a routing policy, and the method may be executed by the user equipment in the communication system mentioned above.
  • the method may include the following steps S201-S202:
  • any routing strategy may include a policy generation attribute; that is, the first routing strategy issued by the network device may include a policy generation attribute, and the first routing strategy stored in the local space of the user equipment may include a policy generation attribute.
  • a policy generation attribute may also be included in the routing policy.
  • any policy generation attribute mentioned in the embodiment of the present application may include: a version number parameter or a time stamp parameter of the corresponding routing policy, which is not limited.
  • the first policy generation attribute in the delivered first routing policy includes: the first version number parameter of the first routing policy, or the first timestamp parameter of the first routing policy, the first timestamp The parameter is used to indicate the generation time of the first routing strategy;
  • the second strategy generation attribute in the stored second routing strategy includes: the second version number parameter of the second routing strategy, or the second version number parameter of the second routing strategy Two timestamp parameters, the second timestamp parameter is used to indicate the generation time of the second routing policy.
  • the user equipment may combine the first policy generation attribute in the first routing policy with the stored second routing policy
  • the second strategy generates attributes for comparison. If the first policy generation attribute is different from the second policy generation attribute, it is determined that a routing policy update is required; if the first policy generation attribute is the same as the second policy generation attribute, it is determined that no routing policy update is required.
  • the network device may also deliver the first policy segment identifier PSI of the first routing policy, and the delivered first PSI is used by the user equipment to determine whether to Perform routing policy updates.
  • the user equipment may also receive the first policy segment identifier PSI of the first routing policy delivered by the network device.
  • the network device 311 may send the first URSP and the corresponding first PSI to the user equipment 312 through a single signaling, or may send the first URSP and the corresponding first PSI to the user equipment 312 through different signaling, respectively.
  • the corresponding first PSI is issued to the user equipment 312, which is not limited.
  • step S302 the user equipment 312 compares the issued first PSI with the stored second PSI of the second URSP, and in step S303, the user equipment 312 generates the first policy in the issued first URSP The attribute is compared with the stored second policy generation attribute in the second URSP.
  • step S304 it is determined that a routing policy update is required; if the first PSI is the same as the second PSI, and the first If the policy generation attribute is the same as the second policy generation attribute, then in step S305, it is determined that there is no need to update the routing policy.
  • the method for the user equipment to determine whether to update the routing policy is as follows: when the UE receives the first URSP, the received first PSI (that is, the The sent PSI) is compared with the stored second PSI, and the received version number parameter in the first URSP is compared with the version number parameter in the stored second URSP.
  • the two PSIs are the same, it is determined that the two PSIs are aimed at the same URSP; but only when the two version number parameters are also the same, it is determined that the received first URSP is the same as the stored second URSP. Determine that no routing policy updates are required. If the two version number parameters are different, it is determined that the received first URSP is different from the stored second URSP, and the stored second URSP needs to be updated to synchronize with the latest URSP generated by the network device.
  • the method for the user equipment to determine whether to update the routing policy is as follows: when the UE receives the first URSP, it can send the received first PSI (i.e. The sent PSI) is compared with the stored second PSI, and the received first timestamp parameter in the first URSP is compared with the stored second timestamp parameter in the second URSP.
  • the two PSIs are the same, it is determined that the two PSIs are aimed at the same URSP; but only when the two timestamp parameters are also the same, it is determined that the received first URSP is the same as the stored second URSP, at this time Determine that no routing policy updates are required. If the two timestamp parameters are different, it is determined that the received first URSP is different from the stored second URSP, and the stored second URSP needs to be updated to synchronize with the latest URSP generated by the network device.
  • the two Steps may also be performed in a certain sequence, which is not limited in this embodiment of the present application.
  • the execution order of the step of comparing the PSI is prior to the execution order of the step of comparing the policy generation attributes, the user equipment can directly determine the two PSIs when they find that the two PSIs are different by comparing the PSIs For different URSPs, it can be directly determined that the routing policy update needs to be performed at this time, without further performing a comparison operation of policy generation attributes, which can effectively save processing resources.
  • the first routing policy is used to update the stored second routing policy.
  • the user equipment when the user equipment uses the delivered first routing strategy to update the stored second routing strategy, it may update the stored second routing strategy based on full update or momentum update.
  • the method of full update includes: using the issued first routing strategy to directly replace the stored second routing strategy;
  • the method of momentum update includes: determining that relative to the stored second routing strategy, the delivered There is updated content in the first routing policy, and the corresponding content in the stored second routing policy is replaced with the updated content.
  • the parameter of policy generation attribute is introduced into the routing policy, so that after receiving the first routing policy issued by the network device, the user equipment can first follow the first routing policy issued by the first routing policy.
  • the first policy generation attribute accurately judges whether it is necessary to update the routing policy for the second routing policy stored in the local space, so that when it is determined that the routing policy needs to be updated, the first route issued by the network device is used.
  • a strategy is selected to update the stored second routing strategy in time.
  • Such an update method on the one hand, can avoid the problem of executing the policy update operation when the issued routing policy is the same as the stored routing policy, can ensure the effectiveness of the policy update operation, and avoid waste of processing resources.
  • FIG. 4 is another method for updating a routing policy provided by an embodiment of the present application, including the interaction between the user equipment and the network equipment. As shown in Figure 4, the method may include the following steps S401-S405:
  • the user equipment reports the second policy generation attribute in the stored second routing policy to the network device.
  • the second policy generation attribute is used by the network device to determine whether to update the routing policy for the user equipment.
  • the network device may receive the policy generation attribute reported by the user equipment; and execute step S402 after receiving the policy generation attribute reported by the user equipment.
  • the network device determines whether to update the routing policy for the user equipment according to the reported second policy generation attribute.
  • the network device obtains the latest routing policy, and compares the reported second policy generation attribute with the policy generation attribute in the latest routing policy. If the reported second policy generation attribute is different from the policy generation attribute in the latest routing policy, it is determined that the user equipment needs to be updated with the routing policy, and the latest routing policy is used as the first routing policy; if the reported If the second policy generation attribute is the same as the policy generation attribute in the latest routing policy, it is determined that the user equipment does not need to update the routing policy.
  • the latest routing policy mentioned here refers to: the latest URSP corresponding to the user equipment stored in the network equipment or UDR.
  • the network device when the latest routing strategy is in the UDR, can send an attribute query request to the UDR to request the UDR to return the policy generation attribute in the latest routing strategy, so as to execute subsequent strategies Generate a comparison operation for attributes.
  • the network device when the latest routing policy is located in the UDR, can send a policy acquisition request to the UDR, which includes the PSI of the latest routing policy, and the policy acquisition request is used to request
  • the UDR returns the latest routing policy corresponding to the PSI, so that after receiving the routing policy returned by the UDR, the policy generation attribute is extracted from the routing policy returned by the UDR, and then the subsequent policy generation attribute comparison operation is performed .
  • the network device may send a policy update judgment request to the UDR to request the UDR to determine whether to implement the routing policy for the user equipment according to the reported policy generation attributes. renew.
  • the PSI of the latest routing policy and the reported second policy generation attribute may be included in the policy update judgment request; the UDR may determine the latest routing policy according to the PSI in the policy update judgment request, and compare the policy to obtain The second policy generation attribute in the request and the policy generation attribute in the latest routing strategy, so that when the UDR detects that the two policy generation attributes are different, it returns to the network device the latest routing strategy corresponding to the PSI and the ratio For the result, when it detects that the generated attributes of the two policies are the same, the UDR returns the comparison result to the network device.
  • the user equipment may also report the second PSI of the policy segment identifier of the second routing policy to the network device, which The second PSI is used by the network device to determine whether to update the routing policy for the user equipment.
  • the user equipment may report the stored second policy generation attribute and the corresponding second PSI in the second routing policy to the network device through a single signaling, or may use different signaling to respectively report the stored The second policy generation attribute and the corresponding second PSI in the second routing policy are reported to the network device, which is not limited.
  • the network device may also receive the second policy segment identifier PSI reported by the user equipment. Then, the network device may compare the reported second PSI with the PSI of the latest routing policy, and compare the reported second policy generation attribute with the policy generation attribute in the latest routing policy. If the reported second PSI is the same as the PSI of the latest routing policy, and the reported second policy generation attribute is different from the policy generation attribute in the latest routing policy, it is determined that the routing policy needs to be updated, and the latest The routing strategy is used as the first routing strategy; if the reported second PSI is the same as the PSI of the latest routing strategy, and the reported second strategy generation attribute is the same as the strategy generation attribute in the latest routing strategy, then Determine that no routing policy updates are required.
  • step S501 the network device 50a requests the UDR50b to return the policy generation attribute and the corresponding PSI in the latest routing policy.
  • step S502 the user equipment 50c reports the second policy generation attribute and the corresponding second PSI in the stored second routing policy.
  • step S503 the network device 50a compares the second policy generation attribute reported by the user equipment 50c with the policy generation attribute returned by UDR50b, and in step 504, the network device 50a compares the second PSI reported by the user equipment 50c with the UDR50b return psi.
  • step S505 it is determined that there is no need to update the routing policy.
  • step S506 it is determined that a routing policy update is required, And the latest routing strategy returned by UDR50b is used as the first routing strategy.
  • step S511 the network device 50a requests the UDR50b to return the latest routing policy and corresponding PSI.
  • step S513 the network device 50a extracts the policy generation attribute from the routing policy returned by the UDR50b, and then in step S514, compares the reported second policy generation attribute with the extracted policy generation attribute.
  • steps S502, S504, S505 and S506 is the same as that of FIG. 5a above.
  • the policy generation attribute when the policy generation attribute includes a version number parameter, when the user equipment sends its own second PSI to the network device, it needs to send the second version number parameter in the stored second URSP at the same time; in this case,
  • the method for the network device to determine whether to update the routing strategy is: compare the received second PSI (that is, the PSI reported by the user equipment) with the latest URSP PSI, and compare the received second version number parameter ( That is, the version number parameter reported by the user equipment) is compared with the version number parameter in the latest URSP.
  • the network device may determine that a routing policy update is required, and at this time, a URSP update process may be initiated to trigger delivery of the latest URSP to the user equipment.
  • the network device determines that the second URSP stored in the UE is the latest and does not need to be updated.
  • the policy generation attribute includes a timestamp parameter
  • the user equipment when the user equipment sends its own second PSI to the network device, it needs to send the stored second timestamp parameter in the second URSP at the same time; in this case,
  • the method for the network device to determine whether to update the routing strategy is: compare the received second PSI (ie, the PSI reported by the user equipment) with the latest URSP PSI, and compare the received second timestamp parameter ( That is, the timestamp parameter reported by the user equipment) is compared with the timestamp parameter in the latest URSP.
  • the network device may determine that a routing policy update is required, and at this time, a URSP update process may be initiated to trigger delivery of the latest URSP to the user equipment.
  • the network device determines that the second URSP stored in the UE is the latest and does not need to be updated.
  • the network device is performing the step of comparing the reported second PSI with the PSI of the latest routing policy, and performing the step of comparing the reported second policy generation attribute with the policy generation attribute in the latest routing policy
  • these two steps may be performed at the same time, or these two steps may be performed in a certain sequence, which is not limited in this embodiment of the present application.
  • the network device can directly determine that routing is required when the two PSIs are found to be different by comparing the PSIs Selecting the policy update does not need to further perform a comparison operation of policy generation attributes, which can effectively save processing resources.
  • the network device may also send the second PSI reported by the UE and the second policy generation attribute reported by the UE to the UDR, so that the UDR performs a comparison between the reported second PSI and the latest The PSI of the routing policy, and the step of comparing the reported second policy generation attribute with the policy generation attribute in the latest routing policy, so as to return the comparison result to the network device; and, when it is determined that the routing policy update is required , to return the latest routing policy to the network device.
  • the network device triggers the execution of the step of delivering the first routing policy to the user equipment, that is, triggers the execution of step S404.
  • the network device delivers the first routing policy to the user equipment.
  • the network device delivers the first routing policy to the user equipment after determining that the routing policy update needs to be performed on the user equipment; and, the first policy generation attribute in the delivered first routing policy is used It is determined by the user equipment whether to update the routing policy.
  • the delivered first routing policy is used to update the second routing policy stored in the user equipment.
  • the network device can compare the policy generation attribute in the latest URSP with the policy generation attribute reported by the user equipment after receiving the policy generation attribute reported by the user equipment. Whether the policy generation attributes are the same to accurately determine whether the URSP in the user equipment needs to be updated, so that when it is determined that an update is required, the latest URSP is sent to the user equipment so that the user equipment performs a routing policy update, In this way, it is possible to avoid the misjudgment that the routing strategy does not need to be updated due to the comparison of the PSI, thereby reducing the mismatch problem of the routing strategy and realizing the timely updating of the routing strategy.
  • the user equipment can also determine whether to use the URSP issued by the network device by comparing whether the policy generation attribute in the URSP issued by the network device is the same as the stored policy generation attribute.
  • URSP executes the policy update operation, which can ensure the validity of the policy update operation, avoid waste of processing resources, and realize effective update of URSP.
  • a policy generation attribute can also be added in the PSI to identify different versions of the URSP rule content; exemplary, when the policy generation attribute is a version number parameter, the PSI can include the following three parts:
  • this part contains the identification of the PLMN of the PCF that provides the routing strategy
  • Routing Policy Section Code (UE policy section code, UPSC), which contains a unique value in the PLMN selected by the PCF;
  • the network device when the PLMN is determined and the UPSC is determined, each time the network device updates the URSP rule, it will assign a new version number parameter to the URSP rule, such as the version number parameter+1.
  • the embodiment of the present application also proposes a method for updating a corresponding routing selection policy, including the interaction between the user equipment and the network equipment.
  • the method may include the following steps S601-S605:
  • the user equipment reports the stored second PSI of the second routing policy to the network device.
  • the reported second PSI is used by the network device to determine whether to update the routing policy for the user equipment.
  • the reported second PSI may be A second policy generation attribute that includes the stored second routing policy.
  • the network device may receive the second PSI reported by the user equipment; and after receiving the second PSI reported by the user equipment, it may first compare a) in the reported second PSI with the PSI of the latest routing strategy a), and compare b) in the reported second PSI with b) in the PSI of the latest routing strategy; when a) and b) in the two PSIs are the same, execution of step S602 may be triggered.
  • the network device determines whether to update the routing policy for the user equipment according to the second policy generation attribute in the reported second PSI.
  • the network device may compare the second policy generation attribute in the reported second PSI with the policy generation attribute in the PSI of the latest routing policy. If the second policy generation attribute is different from the policy generation attribute in the current PSI, it is determined that the routing policy update needs to be performed on the user equipment; if the second policy generation attribute is the same as the policy generation attribute in the current PSI, it is determined that no update is required. The user equipment updates the routing policy.
  • the method for the network device to judge whether to update the routing policy is: according to the content of each part in the second PSI reported by the UE, and the content in the PSI retrieved from the UDR Compare the contents of each part.
  • the network device determines that the URSP rule in the user equipment needs to be updated, and at this time, the updated URSP (ie, the latest URSP) can be delivered to the UE.
  • the network device determines that the URSP rule in the user equipment does not need to be updated.
  • the logic for the network device to determine whether to update the routing policy is similar to the logic mentioned here, and will not be repeated here.
  • the network device if it is determined according to the second policy generation attribute in the reported second PSI that the user equipment needs to be updated with the routing policy, the network device triggers the execution of the step of delivering the first routing policy to the user equipment, that is, triggers the execution of step S604 .
  • the network device delivers the first routing policy and the corresponding first PSI to the user equipment.
  • the user equipment may receive the first routing policy delivered by the network device and the corresponding first PSI.
  • the user equipment can first compare a) in the delivered first PSI with a) in the stored PSI, and compare the delivered first PSI b) in the stored PSI and b) in the stored PSI; when a) and b) in the two PSIs are the same, step S605 can be triggered
  • the user equipment may compare the first policy generation attribute in the delivered first PSI with the second policy generation attribute in the stored second PSI. If the first policy generation attribute is different from the second policy generation attribute, it is determined that a routing policy update needs to be performed on the user equipment; if the first policy generation attribute is the same as the second policy generation attribute, it is determined that no routing policy needs to be performed on the user equipment renew.
  • the method for the user equipment to determine whether to update the routing policy is: according to the content of each part of the second PSI delivered by the network device and the stored PSI Some content is compared.
  • the user equipment determines that the two PSIs correspond to the same URSP; only when c) the version number parameters are also the same, the user equipment determines the issued first URSP and the stored The second URSP is the same.
  • the version number parameter is different, the user equipment determines that the stored rules in the second URSP need to be updated, and synchronizes with the rules in the latest URSP issued by the network device.
  • the logic for the user equipment to determine whether to update the routing policy is similar to the logic mentioned here, and will not be repeated here.
  • the parameter of policy generation attribute is introduced into the PSI, so that after receiving the second PSI reported by the user equipment, the network device can accurately judge whether the policy generation attributes in the two PSIs are the same.
  • the user equipment can also determine whether to use the URSP issued by the network device to perform the policy update operation by comparing whether the policy generation attributes in the two PSIs are the same. In this way, the validity of the policy update operation can be guaranteed, the waste of processing resources can be avoided, and the effective update of the URSP can be realized.
  • the embodiment of the present application also discloses a device for updating a routing strategy.
  • the device for updating a routing strategy may be a computer program (including program code) running in a user equipment.
  • the apparatus for updating the routing policy may run the following units: a receiving unit 701 , an updating unit 702 , and a reporting unit 703 .
  • each unit in the device for updating the routing strategy shown in FIG. can be further divided into a plurality of functionally smaller units, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application.
  • the above-mentioned units are divided based on logical functions.
  • the functions of one unit may also be realized by multiple units, or the functions of multiple units may be realized by one unit.
  • the routing policy-based updating device may also include other units.
  • these functions may also be implemented with the assistance of other units, and may be implemented cooperatively by multiple units.
  • a general-purpose computing device such as a computer that includes processing elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM) and storage elements
  • CPU central processing unit
  • RAM random access storage medium
  • ROM read-only storage medium
  • Run the computer program (including program code) that can execute the steps involved in the update method of the above-mentioned routing strategy, to construct the updating device device of the routing strategy as shown in Figure 7, and to realize the present application
  • the method for updating the routing policy of the embodiment The computer program can be recorded in, for example, a computer-readable recording medium, loaded into the above-mentioned computing device through the computer-readable recording medium, and executed therein.
  • each unit in the device for updating the routing policy can be used to perform the following operations:
  • a receiving unit 701 configured to receive a first routing policy issued by a network device, where the first routing policy includes a first policy generation attribute;
  • the updating unit 702 is configured to use the first routing strategy to update the stored second routing strategy when it is determined according to the first policy generation attribute that a routing strategy needs to be updated.
  • the update unit 702 can also be used to:
  • the first policy generation attribute is the same as the second policy generation attribute, it is determined that there is no need to update the routing policy.
  • the receiving unit 701 is further configured to: receive the first policy segment identifier PSI of the first routing policy issued by the network device;
  • the updating unit 702 is further configured to: compare the issued first PSI with the second PSI of the second routing strategy, and compare the generated attributes of the first strategy with those in the second routing strategy. Compare the second policy generation attribute of the first PSI; if the first PSI is the same as the second PSI, and the first policy generation attribute is different from the second policy generation attribute, it is determined that a routing policy update is required ; If the first PSI is the same as the second PSI, and the first policy generation attribute is the same as the second policy generation attribute, then determine that there is no need to update the routing policy.
  • the reporting unit 703 may be configured to: report the second policy generation attribute in the second routing policy to the network device; wherein the second policy generation attribute is used by the network device to determine Whether it is necessary to update the routing policy for the user equipment; and after the network device determines that it is necessary to update the routing policy for the user equipment, it issues the first routing policy to the user equipment.
  • reporting unit 703 can also be used to:
  • the second PSI is used by the network device to determine whether to update the routing policy for the user equipment.
  • the parameter of policy generation attribute is introduced into the routing policy, so that after receiving the routing policy issued by the network device, the user equipment can first generate the attribute according to the policy in the issued routing policy, To accurately judge whether it is necessary to update the routing strategy for the routing strategy stored in the local space, so that when it is determined that the routing strategy needs to be updated, the routing strategy issued by the network device is used to update the stored routing strategy in time Strategy.
  • Such an update method can avoid the problem of executing the policy update operation when the issued routing policy is the same as the stored routing policy, can ensure the effectiveness of the policy update operation, and avoid waste of processing resources.
  • each unit in the device for updating the routing policy can be used to perform the following operations:
  • a receiving unit 701 configured to receive a first routing policy issued by a network device and a corresponding first policy segment identifier PSI, where the first PSI includes a first policy generation attribute of the first routing policy;
  • the updating unit 702 is configured to use the first routing strategy to update the stored second routing strategy when it is determined that the routing strategy needs to be updated according to the first strategy generation attribute in the first PSI.
  • the reporting unit 703 can be used to:
  • the second PSI is used by the network device to determine whether to update the routing policy for the user equipment, and the second PSI includes the second policy generation attribute.
  • the receiving unit 701 is further configured to: receive the first routing policy delivered by the network device and the corresponding first PSI.
  • the update unit 702 can also be used to:
  • the first policy generation attribute is different from the second policy generation attribute, it is determined that a routing policy update needs to be performed on the user equipment;
  • the first policy generation attribute is the same as the second policy generation attribute, it is determined that there is no need to update the routing policy for the user equipment.
  • the update unit 702 can also be used to:
  • the step of comparing the first policy generation attribute with the second policy generation attribute is triggered.
  • the parameter of policy generation attribute is introduced into the PSI of the routing policy, so that after the user equipment receives the routing policy and the corresponding PSI issued by the network device, it can first use the parameter in the issued PSI to Policy generation attributes to accurately determine whether to update the routing policy stored in the local space, so that when it is determined that the routing policy needs to be updated, the routing policy issued by the network device is used to update the stored routing policy in time routing strategy.
  • Such an update method on the one hand, can avoid the problem of executing the policy update operation when the issued routing policy is the same as the stored routing policy, can ensure the effectiveness of the policy update operation, and avoid waste of processing resources.
  • the embodiment of the present application also discloses a device for updating a routing strategy.
  • the device for updating a routing strategy may be a computer program (including program code) running in a network device.
  • the apparatus for updating the routing policy may run the following units: a receiving unit 801 , a delivery unit 803 , a processing unit 803 and so on.
  • each unit in the device for updating the routing strategy shown in FIG. can be further divided into a plurality of functionally smaller units, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application.
  • the above-mentioned units are divided based on logical functions.
  • the functions of one unit may also be realized by multiple units, or the functions of multiple units may be realized by one unit.
  • the routing policy-based updating device may also include other units.
  • these functions may also be implemented with the assistance of other units, and may be implemented cooperatively by multiple units.
  • a general-purpose computing device such as a computer that includes processing elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM) and storage elements
  • CPU central processing unit
  • RAM random access storage medium
  • ROM read-only storage medium
  • Run the computer program (including program code) that can execute the steps involved in the update method of the above-mentioned routing strategy, to construct the updating device device of the routing strategy as shown in Figure 8, and to realize the present application
  • the method for updating the routing policy of the embodiment can be recorded in, for example, a computer-readable recording medium, loaded into the above-mentioned computing device through the computer-readable recording medium, and executed therein.
  • each unit in the device for updating the routing policy can be used to perform the following operations:
  • the receiving unit 801 is configured to receive the second policy generation attribute reported by the user equipment
  • the issuing unit 802 is configured to issue a first routing policy to the user equipment if it is determined according to the second policy generation attribute that the user equipment needs to be updated with a routing policy, and the first routing policy including a first policy generation attribute;
  • the first policy generation attribute is used for the user equipment to determine whether to update the routing policy; when the user equipment determines that the routing policy needs to be updated, the first routing policy is used to update the The second routing policy stored in the user equipment.
  • the sending unit 802 can also be used to:
  • the receiving unit 801 can also be used to acquire the latest routing strategy
  • the apparatus may further include a processing unit 803, which may be used to:
  • the second policy generation attribute is different from the policy generation attribute in the latest routing policy, it is determined that a routing policy update needs to be performed on the user equipment, and the latest routing policy is used as the first routing policy.
  • the reported policy generation attribute is the same as the policy generation attribute in the latest routing policy, it is determined that there is no need to update the routing policy for the user equipment.
  • the receiving unit 801 is further configured to obtain the latest routing policy; receive the second policy segment identifier PSI reported by the user equipment;
  • the processing unit 803 is further configured to: compare the second PSI with the PSI of the latest routing policy, and compare the second policy generation attribute with the policy generation attribute in the latest routing policy;
  • the second PSI is the same as the PSI of the latest routing policy, and the second policy generation attribute is different from the policy generation attribute in the latest routing policy, it is determined that a routing policy update is required, and using the latest routing strategy as the first routing strategy;
  • the second PSI is the same as the PSI of the latest routing policy, and the second policy generation attribute is the same as the policy generation attribute in the latest routing policy, it is determined that there is no need to update the routing policy.
  • the user equipment can report the policy generation attribute in the stored routing policy to the network device, so that the network device can generate the attribute according to the reported policy
  • the network device can generate the attribute according to the reported policy
  • the network device can also enable the user equipment to accurately determine whether local The route selection strategy stored in the space is updated, so that when it is determined that the routing strategy update is required, the routing strategy issued by the network device is used to update the stored routing strategy in time.
  • This update method can avoid the problem of executing the policy update operation when the issued routing selection policy is the same as the stored routing selection policy, which can ensure the effectiveness of the policy update operation, avoid waste of processing resources, and realize routing selection. Effective update of the policy.
  • each unit in the device for updating the routing policy can be used to perform the following operations:
  • a delivery unit 802 configured to deliver a first routing policy and a corresponding first policy segment identifier PSI to the user equipment, where the first PSI includes a first policy generation attribute of the first routing policy;
  • the first policy generation attribute is used for the user equipment to determine whether to update the routing policy; when the user equipment determines that the routing policy needs to be updated, the first routing policy is used to update the The second routing policy stored in the user equipment.
  • the receiving unit 801 may be configured to: receive the second PSI reported by the user equipment;
  • the processing unit 803 may be configured to: determine whether to update the routing policy for the user equipment according to the second policy generation attribute in the second PSI.
  • processing unit 803 may also be used to:
  • the step of determining whether to update the routing policy for the user equipment according to the second policy generation attribute in the second PSI may be triggered.
  • processing unit 803 when the processing unit 803 is configured to determine whether to update the routing policy for the user equipment according to the second policy generation attribute in the second PSI, it may be specifically configured to:
  • the second policy generation attribute is the same as the policy generation attribute in the latest PSI, it is determined that there is no need to update the routing policy for the user equipment.
  • the network device can deliver a PSI containing the policy generation attribute to the user equipment, so that the user equipment can first use the issued PSI
  • the policy generation attribute in , to accurately determine whether to update the routing policy for the routing policy stored in the local space, so that when it is determined that the routing policy needs to be updated, the routing policy issued by the network device is used to update it in time Stored routing policies.
  • Such an update method can avoid the problem of executing the policy update operation when the issued routing policy is the same as the stored routing policy, can ensure the effectiveness of the policy update operation, and avoid waste of processing resources.
  • the user equipment includes at least a processor 901 , an input interface 902 , an output interface 903 and a computer-readable storage medium 904 .
  • the processor 901, the input interface 902, the output interface 903, and the computer-readable storage medium 904 in the user equipment may be connected through a bus or in other ways.
  • the computer-readable storage medium 904 may be stored in the memory of the user equipment, the computer-readable storage medium 904 is used to store a computer program, the computer program includes program instructions, and the processor 901 is used to execute the computer-readable The storage medium 904 stores program instructions.
  • Processor 901 (or called CPU (Central Processing Unit, central processing unit)) is the calculation core and control core of the user equipment, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to realize Corresponding method flow or corresponding function.
  • CPU Central Processing Unit
  • the processor 901 described in the embodiment of the present application may be configured to perform a series of routing policy update processing, specifically including: receiving a first routing policy issued by a network device, the first routing policy The selection policy includes a first policy generation attribute; and, when it is determined according to the first policy generation attribute that a routing selection policy needs to be updated, the stored second routing selection policy is updated using the first routing selection policy.
  • the processor 901 described in the embodiment of the present application may be configured to perform a series of routing strategy update processing, specifically including: receiving the first routing strategy issued by the network device and the corresponding first strategy segment identifier PSI , the first PSI includes the first policy generation attribute of the first routing policy; when the first policy generation attribute determines that a routing policy update is required, the first routing policy is adopted, and the updated stored secondary routing policy, and so on.
  • the network device at least includes a processor 1001 , an input interface 1002 , an output interface 1003 and a computer-readable storage medium 1004 .
  • the processor 1001, the input interface 1002, the output interface 1003, and the computer-readable storage medium 1004 in the network device may be connected through a bus or in other ways.
  • the computer-readable storage medium 1004 may be stored in a memory of a network device, the computer-readable storage medium 1004 is used to store a computer program, the computer program includes program instructions, and the processor 1001 is used to execute the computer-readable The storage medium 1004 stores program instructions.
  • Processor 1001 (or CPU (Central Processing Unit, central processing unit)) is the computing core and control core of the network device, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to realize Corresponding method flow or corresponding function.
  • CPU Central Processing Unit, central processing unit
  • the processor 1001 described in the embodiment of the present application may be configured to perform a series of routing policy update processing, specifically including: receiving the second policy generation attribute reported by the user equipment; if according to the second The policy generation attribute determines that a routing policy update needs to be performed on the user equipment, and then delivers a first routing policy to the user equipment, and the first routing policy includes a first policy generation attribute; wherein, the first The policy generation attribute is used by the user equipment to determine whether a routing policy update is required; when the user equipment determines that a routing policy update is required, the first routing policy is used to update the stored routing policy in the user equipment. Second routing strategy.
  • the processor 1001 described in the embodiment of the present application may be configured to perform a series of routing policy update processing, specifically including: delivering the first routing policy and the corresponding first policy segment identifier PSI to the user equipment,
  • the first PSI includes a first policy generation attribute of the first routing policy; wherein, the first policy generation property is used by the user equipment to determine whether a routing policy update is required; in the user equipment When it is determined that a routing policy update is required, the first routing policy is used to update the second routing policy stored in the user equipment.
  • the embodiment of the present application also provides a computer-readable storage medium (Memory), the computer-readable storage medium is a memory device in a computer device (such as the aforementioned user device or network device), and is used to store programs and data.
  • the computer-readable storage medium here may include a built-in storage medium in the computer device, and of course may also include an extended storage medium supported by the computer device.
  • a computer-readable storage medium provides storage space that stores an operating system of a computer device.
  • one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions may be one or more computer programs (including program codes).
  • the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory;
  • a computer-readable storage medium for the aforementioned processor can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory;
  • one or more instructions stored in the computer-readable storage medium can be loaded and executed by the processor, so as to realize the above-mentioned corresponding instructions in the embodiment of the updating method for the routing strategy shown in FIG. 2 or FIG. 4 step.
  • one or more instructions stored in the computer-readable storage medium can be loaded and executed by the processor, so as to implement the corresponding steps in the above embodiment of the method for updating the routing strategy shown in FIG. 6 .
  • one or more instructions stored in the computer-readable storage medium can be loaded and executed by the processor, so as to realize the above-mentioned corresponding instructions in the embodiment of the updating method for the routing strategy shown in FIG. 2 or FIG. 4 step.
  • one or more instructions stored in the computer-readable storage medium can be loaded and executed by the processor, so as to implement the corresponding steps in the above embodiment of the method for updating the routing strategy shown in FIG. 6 .
  • a computer program product or computer program where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the embodiment of the method for updating the routing strategy shown in FIG. 2 or FIG. 4 or FIG. 6
  • the methods provided in the various options for are also provided.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例公开了一种路由选择策略的更新方法、装置、相关设备及存储介质,其中方法包括:接收网络设备下发的第一路由选择策略,所述第一路由选择策略包括第一策略生成属性;及,在根据所述第一策略生成属性确定需进行路由选择策略更新时,采用所述第一路由选择策略,更新已存储的第二路由选择策略。

Description

路由选择策略的更新方法、装置、相关设备及存储介质
本申请要求于2021年12月30日提交中国专利局、申请号为202111663294.2、申请名称为“路由选择策略的更新方法、装置、相关设备及存储介质”的中国专利申请的优先权。
技术领域
本申请涉及通信技术领域,尤其涉及一种路由选择策略的更新方法、装置、相关设备及存储介质。
发明背景
在通信系统中,用户设备(user equipment,UE)可从网络设备处获取终端设备路由选择策略(UE route selection policy,URSP),从而基于该终端设备路由选择策略(本申请简称路由选择策略)进行协议数据单元(Protocol Data Unit,PDU)会话的建立、绑定等操作。
目前,UE每次在接收到网络设备下发的URSP后,通常是直接采用网络设备下发的URSP来更新已存储的URSP。然而,在实际应用中,可能存在网络设备下发的URSP和UE中已存储的URSP相同的情况,而UE却无法判断网络设备下发的URSP和UE已经存储的URSP是否相同。那么在此情况下,通过这样的更新方式进行URSP的更新,会导致UE侧处理资源的浪费。并且,网络设备也无法判断UE已经存储的URSP是否是最新的URSP,从而无法判断是否需要对UE的URSP进行更新。
发明内容
本申请实施例提供了一种路由选择策略的更新方法、装置、相关设备及存储介质,可以优化路由选择策略的更新机制,实现路由选择策略的及时更新以及有效更新,避免处理资源的浪费。
第一方面,本申请实施例提供了一种路由选择策略的更新方法,由用户设备执行,包括:
接收网络设备下发的第一路由选择策略,所述第一路由选择策略包括第一策略生成属性;及,
在根据所述第一策略生成属性确定需进行路由选择策略更新时,采用所述第一路由选择策略,更新已存储的第二路由选择策略。
另一方面,本申请实施例提供了一种路由选择策略的更新方法,由网络设备执行,包括:
接收用户设备上报的第二策略生成属性;
若根据所述第二策略生成属性确定需对所述用户设备进行路由选择策略更新,则向所述用户设备下发第一路由选择策略,所述第一路由选择策略包括第一策略生成属性;
其中,所述第一策略生成属性用于所述用户设备确定是否需进行路由选择策略更新;在所述用户设备确定需进行路由选择策略更新时,所述第一路由选择策略用于更新所述用户设备中已存储的第二路由选择策略。
另一方面,本申请实施例提供了一种路由选择策略的更新装置,所述装置可运行在用户设备中,所述装置可包括:
接收单元,用于接收网络设备下发的第一路由选择策略,所述第一路由选择策略包括第一策略生成属性;及,
更新单元,用于在根据所述第一策略生成属性确定需进行路由选择策略更新时,采用所述第一路由选择策略,更新已存储的第二路由选择策略。
另一方面,本申请实施例提供了一种路由选择策略的更新装置,所述装置可运行在网络设备中,所述装置可包括:
接收单元,用于接收用户设备上报的第二策略生成属性;
下发单元,用于若根据所述第二策略生成属性确定需对所述用户设备进行路由选择策略更新,则向所述用户设备下发第一路由选择策略,所述第一路由选择策略包括第一策略生成属性;
其中,所述第一策略生成属性用于所述用户设备确定是否需进行路由选择策略更新;在所述用户设备确定需进行路由选择策略更新时,所述第一路由选择策略用于更新所述用户设备中已存储的第二路由选择策略。
另一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一条或多条指令,所述一条或多条指令适于由处理器加载并执行如上所述的路由选择策略的更新方法。
另一方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机程序;所述计算机程序被处理器执行时,实现上述所提及的任一种路由选择策略的更新方法。
另一方面,本申请实施例提供了一种用户设备,包括存储器、处理器及存储在存储器上的计算机程序,所述处理器执行所述计算机程序以实现如上所述的路由选择策略的更新方法。
另一方面,本申请实施例提供了一种网络设备,包括存储器、处理器及存储在存储器上的计算机程序,所述处理器执行所述计算机程序以实现如上所述的路由选择策略的更新方法。
附图简要说明
图1a是本申请实施例提供的一种通信系统的系统架构图;
图1b是本申请实施例提供的另一种通信系统的系统架构图;
图2是本申请实施例提供的一种路由选择策略的更新方法的流程示意图;
图3是本申请实施例提供的一种用户设备确定是否进行路由选择策略更新的逻辑示意图;
图4是本申请另一实施例提供的一种路由选择策略的更新方法的流程示意图;
图5a是本申请另一实施例提供的一种网络设备确定是否进行路由选择策略更新的逻辑示意图;
图5b是本申请另一实施例提供的另一种网络设备确定是否进行路由选择策略更新的逻辑示意图;
图6是本申请再一实施例提供的一种路由选择策略的更新方法的流程示意图;
图7是本申请实施例提供的一种路由选择策略的更新装置的结构示意图;
图8是本申请另一实施例提供的一种路由选择策略的更新装置的结构示意图;
图9是本申请实施例提供的一种用户设备的结构示意图;
图10是本申请实施例提供的一种网络设备的结构示意图。
实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
在本申请实施例中,路由选择策略(UE Route Selection Policy,URSP)可理解成是一种用于UE侧为业务流选择不同PDU会话的策略,其内部可以包含多个URSP规则(Rule)。具体的,URSP规则可以包括但不限于:数据流描述符(Traffic descriptor)以及路径选择描述符(Route Selection descriptor,RSD),其中数据流描述符可以包括应用标识(Application identifiers)、网络协议(Internet Protocol,IP)描述符、非IP描述符等。每个UE的URSP可由UE策略分段标识(UE policy section identifier,UPSI)进行标识,此处的UPSI也可简称为PSI(policy section identifier)。
本申请实施例针对路由选择策略的更新问题,提出了一种策略更新方案,以优化路由选择策略的更新机制,实现路由选择策略的及时更新以及有效更新,避免处理资源的浪费。
在具体实现中,该策略更新方案可应用于各种通信系统;例如:全球移动通讯(Global System of Mobile communication,GSM)系统、码分多址(Code Division Multiple Access,CDMA)系统、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)系统、通用分组无线业务(General Packet Radio Service,GPRS)、长期演进(Long Term Evolution,LTE)系统、LTE频分双工(Frequency Division Duplex,FDD)系统、LTE时分双工(Time Division Duplex,TDD)、通用移动通信系统(Universal Mobile Telecommunication System,UMTS)、新无线(New Radio,NR)系统、全球互联微波接入(Worldwide Interoperability for Microwave Access,WiMAX)通信系统、第五代移动通信技术(5th Generation Mobile Communication Technology,5G)系统,或者未来的移动通信技术系统等。
具体的,本申请实施例所提出的策略更新方案所应用的通信系统中可至少包括:用户设备(UE)11以及网络设备12。其中,UE11可以是移动的或固定的设备,且UE11可被设置成有线接口通信或无线接口通信,对此不作限定。
可选地,UE11可以包括以下任一种:接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。其中,接入终端可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、个人数字处理(Personal Digital Assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备、物联网(Internet of Things,IoT)设备、5G网络中的终端设备或者未来演进的公共陆地移动网络(Public Land Mobile Network,PLMN)中的终端设备等。
网络设备12是指可向UE11发送URSP的设备,例如该网络设备12可以是网络侧的核心网设备。其中,此处所提及的核心网设备可以是5G核心网络设备,如策略控制功能实体(Policy Control Function,PCF)、访问与移动性管理功能(Access and Mobility Management Function,AMF),或者会话管理功能(Session Management Function,SMF)等网元。或者,此处所提及的核心网设备也可以是LTE网络的分组核心演进(Evolved Packet Core,EPC)设备,如会话管理功能+核心网络的数据网关(Session Management  Function+Core Packet Gateway,SMF+PGW-C)设备。应理解的是,此处只是示例性地列举了网络设备12的几种具体实现,并非穷举;在其他实施例中,该网络设备12还可以是其他可与UE11进行通信的设备,对此不作限定。并且,为便于阐述,后续均以网络设备为PCF为例进行说明。
当网络设备12是核心网设备时,本申请实施例所应用的通信系统还可进一步包括接入网设备13。该接入网设备13可以为特定的地理区域提供通信覆盖,并与位于该覆盖区域内的用户设备进行通信,并且该接入网络设备13可与核心网设备进行通信。在此情况下,UE11位于接入网设备13的覆盖范围内,且UE11和网络设备12通过该接入网设备13进行数据传输。
可选地,该接入网设备13可以是5G网络中的网络侧设备、PLMN中的网络侧设备、无线接入网络(Radio Access Network,RAN)或NR系统中的基站(gNB)、GSM系统或CDMA系统中的网络侧设备(Base Transceiver Station,BTS)、WCDMA系统中的网络侧设备(NodeB,NB)、LTE系统中的演进型网络设备(Evolutional Node B,eNB或eNodeB)、云无线接入网络(Cloud Radio Access Network,CRAN)中的无线控制器、移动交换中心、中继站、接入点、车载设备、可穿戴设备、集线器、交换机、网桥或路由器等。
以接入网设备13为基站为例,本申请实施例所应用的通信系统可参见图1a所示。应理解的是,图1a只是示例性地示出了本申请实施例所应用的通信系统的系统架构,并不对此进行限定。例如,图1a所示的通信系统中只示例性地示出了两个UE11、一个网络设备12以及一个接入网设备13。但在实际应用中,该通信系统还可以包括更多数量的接入网设备13,并且每个接入网设备13的覆盖范围内可以包括其它数量的终端设备;或者,该通信系统还可包括更多数量的网络设备12,本申请实施例不做限定。
又如,该通信系统还可以包括统一数据仓储功能(Unified Data Repository,UDR)、接收核心接入和移动性管(Core Access and Mobility Management Function,AMF)、会话管理功能(Session Management Function,SMF)、用户面功能(User Plane Function,UPF)、统一数据管理(Unified Data Management,UDM)、信令网关(Signaling Gateway,SGW)等其他网元,本申请实施例不作限定。其中,当通信系统包括UDR14时,网络设备12可与UDR14进行通信,如图1b所示;并且,网络设备12还可将各个UE11所涉及的URSP以及相应的PSI存储至UDR14中。
在上述图1b所示的通信系统中,UE11可触发URSP的上报流程;该上报流程可以是在UE11的初始注册流程中被触发的,也可以是在UE11从EPS(Evolved Packet System,演进的分组系统)切换到5G网络时的移动性管理流程中被触发的,也可以是在其他的流程中被触发的,对此不作限定。并且,当UE11发现内部所存储的URSP丢失、无效或缺失时,该UE11可使用初始注册流程来重新取回URSP;也就是说,当UE11发现内部所存储的URSP丢失、无效或缺失时,也可触发上报流程。在UE11执行上报流程时,UE11可在该上报流程中包含其所保存的PSI,以将其所保存的PSI上报给PCF12;PCF12接收到UE11上报的PSI后,可从UDR14中获取该UE11所对应的最新的PSI,然后比对从UDR14中取回的PSI和UE11上报的PSI是否相同,如果不同,则将UDR14中存储的该UE对应的URSP作为更新的URSP,以及将UDR14中存储的相应PSI作为更新的PSI下发至UE11,以使UE11进行路由选择策略更新。其中,PSI可包括如下两部分:
a)PLMN标识部分,该部分包括包含提供路由选择策略的PCF的PLMN的标识;
b)路由选择策略代码(UE policy section code,UPSC),该路由选择策略代码包含由PCF选择的PLMN中的唯一值。
经实践表明:由于PSI中的两部分内容均是相对固定的,即当PLMN确定,且URSP中的规则内容变化时,PSI是不会发生变化的,因此可见,PSI只是标识信息,不能标记其对应的URSP中的规则是否是更新后的规则(即最新的规则)。然而,当UE从PCF处接收到更新的PSI后,可能存在因某些原因(如UE在策略更新过程中突然死机、在策略更新过程中检测到内存不足等),而导致未及时成功更新该PSI对应的URSP的情况。那么在此情况下,UE在通过上报流程向PCF上报PSI后,PCF进行PSI比对时,确定该UE存储的URSP是最新的URSP(即UE存储的URSP规则是最新的规则),从而会误判为无需对UE中的URSP进行更新,进而导致URSP的失配问题。并且,在实际应用中,也可能存在PCF在下发URSP后,因某些原因而重复下发URSP,导致PCF下发的URSP和UE中已存储的URSP相同。在此情况下,若UE直接采用PCF下发的URSP来更新已存储的URSP,会导致处理资源的浪费。
基于此,本申请实施例所提出的策略更新方案,在URSP(路由选择策略)或者PSI中引入了策略生成属性。其中,此处所提及的策略生成属性是指:在生成路由选择策略时,为该路由选择策略分配的、且用于唯一标识路由选择策略的参数。例如,策略生成属性可以包括以下一种或多种:路由选择策略的版本号参数、路由选择策略的时间戳参数等。其中,路由选择策略的版本号参数可以是PCF每次更新URSP中的规则时,为该URSP分配的;且每次分配的版本号参数可以是通过对前一次的版本号参数进行加一(+1)操作生成的,也可以是通过随机算法生成的,本申请实施例对版本号参数的生成方式不作限定。一个时间戳参数用于指示相应的路由选择策略的生成时间,即路由选择策略的时间戳参数可以是PCF每次更新URSP中的规则时,基于当前的系统时间为该URSP分配的。
由于策略生成属性可唯一标识URSP,因此通过在URSP或PSI中引入策略生成属性,可使得UE通过上报流程向PCF上报已存储的URSP对应的策略生成属性,从而PCF在接收到UE上报的策略生成属性后,可通过比对UDR中与该UE对应的最新的策略生成属性和UE上报的策略生成属性是否相同,来准确地判断出UE中的URSP是否需要进行更新,以在确定需要进行更新的情况下,将UDR中存储的该UE对应的URSP以及相应PSI下发至UE,以使UE进行路由选择策略更新,这样可避免因通过比对PSI中的两部分内容而导致误判路由选择策略无需更新的情况,从而减少产生路由选择策略的失配问题,实现路由选择策略的及时更新。并且,UE在接收到PCF下发的URSP和PSI后,也可通过比对PCF下发的URSP或PSI中的策略生成属性和UE已存储的策略生成属性是否相同,来确定是否采用PCF下发的URSP执行策略更新操作,这样可保证策略更新操作的有效性,避免处理资源的浪费,实现URSP的有效更新。由此可见,本申请实施例所提出的策略更新方案,通过在URSP或者PSI中引入了策略生成属性,可有效优化路由选择策略的更新机制,实现路由选择策略的及时更新以及有效更新,避免处理资源的浪费。
需要说明的是,上述只是以图1b所示的通信系统为例,示例性地阐述了本申请实施例所提出的策略更新方案的大致原理,并不对此进行限定。例如,PCF也可不将各个UE所涉及的URSP以及相应的PSI存储至UDR中,而是将这些数据存储在自身的存储空间中;那么在此情况下,PCF可直接从自身的存储空间中获取UE对应的最新的URSP以及相应的PSI、策略生成属性等数据,从而基于获取到的数据执行一系列的处理。
基于上述的描述,本申请实施例提出一种路由选择策略的更新方法,该方法可以由上述所提及的通信系统中的用户设备执行。请参见图2,该方法可包括以下步骤S201-S202:
S201,接收网络设备下发的第一路由选择策略。
在本申请实施中,任一路由选择策略均可包括策略生成属性;也就是说,网络设备下发的第一路由选择策略中可包括一个策略生成属性,用户设备的本地空间中已存储的第二路由选择策略中也可包括一个策略生成属性。并且,本申请实施例所提及的任一策略生成属性可包括:相应的路由选择策略的版本号参数或时间戳参数,对此不作限定。也就是说,下发的第一路由选择策略中的第一策略生成属性包括:第一路由选择策略的第一版本号参数,或第一路由选择策略的第一时间戳参数,第一时间戳参数用于指示第一路由选择策略的生成时间;已存储的第二路由选择策略中的第二策略生成属性包括:第二路由选择策略的第二版本号参数,或第二路由选择策略的第二时间戳参数,第二时间戳参数用于指示第二路由选择策略的生成时间。
在一种实施方式中,用户设备在接收到网络设备下发的第一路由选择策略后,可将第一路由选择策略中的第一策略生成属性,与已存储的第二路由选择策略中的第二策略生成属性,进行比对。若第一策略生成属性与第二策略生成属性不同,则确定需进行路由选择策略更新;若第一策略生成属性与第二策略生成属性相同,则确定无需进行路由选择策略更新。
另一种实施方式中,网络设备除了下发第一路由选择策略以外,还可下发第一路由选择策略的第一策略分段标识PSI,下发的第一PSI用于用户设备确定是否需进行路由选择策略更新。相应的,用户设备除了可接收网络设备下发的第一路由选择策略以外,还可接收网络设备下发的第一路由选择策略的第一策略分段标识PSI。
如图3所示,步骤S301中,网络设备311可以通过一条信令,将第一URSP和相应的第一PSI下发给用户设备312,也可以通过不同的信令,分别将第一URSP和相应的第一PSI下发给用户设备312,对此不作限定。
步骤S302中,用户设备312将下发的第一PSI和已存储的第二URSP的第二PSI进行比对,以及步骤S303中,用户设备312将下发的第一URSP中的第一策略生成属性,与已存储的第二URSP中的第二策略生成属性进行比对。
若第一PSI与第二PSI相同,且第一策略生成属性与第二策略生成属性不同,则步骤S304中,确定需进行路由选择策略更新;若第一PSI与第二PSI相同,且第一策略生成属性与第二策略生成属性相同,则步骤S305中,确定无需进行路由选择策略更新。
基于上述描述,当策略生成属性包括版本号参数时,用户设备判断是否需进行路由选择策略更新的方法为:当UE接收到第一URSP时,可将接收到的第一PSI(即网络设备下发的PSI)和已存储的第二PSI进行比对,以及将接收到的第一URSP中的版本号参数和已存储的第二URSP中的版本号参数进行比对。当两个PSI相同时,确定两个PSI针对的是同一个URSP;但只有当两个版本号参数也相同时,才确定接收到的第一URSP和已存储的第二URSP相同,此时可确定无需进行路由选择策略更新。若两个版本号参数不同,则确定接收到的第一URSP和已存储的第二URSP不同,已存储的第二URSP需要进行更新,来和网络设备生成的最新的URSP进行同步。
基于上述描述,当策略生成属性包括时间戳参数时,用户设备判断是否需进行路由选择策略更新的方法为:当UE接收到第一URSP时,可将接收到的第一PSI(即网络 设备下发的PSI)和已存储的第二PSI进行比对,以及将接收到的第一URSP中的第一时间戳参数和已存储的第二URSP中的第二时间戳参数进行比对。当两个PSI相同时,确定两个PSI针对的是同一个URSP;但只有当两个时间戳参数也相同时,才确定接收到的第一URSP和已存储的第二URSP相同,此时可确定无需进行路由选择策略更新。若两个时间戳参数不同,则确定接收到的第一URSP和已存储的第二URSP不同,已存储的第二URSP需要进行更新,来和网络设备生成的最新的URSP进行同步。
需要说明的是,用户设备在执行将第一PSI和第二PSI进行比对的步骤,以及执行将第一策略生成属性与第二策略生成属性进行比对的步骤时,可同时执行这两个步骤,也可按照一定的先后顺序执行这两个步骤,本申请实施例对此不作限定。并且,可选的,若比对PSI这一步骤的执行顺序先于比对策略生成属性这一步骤的执行顺序,则用户设备通过比对PSI发现两个PSI不同时,可以直接确定两个PSI针对的是不同的URSP,此时可直接确定需进行路由选择策略更新,无需进一步执行策略生成属性的比对操作,这样可有效节省处理资源。
S202,在根据第一策略生成属性确定需进行路由选择策略更新时,采用第一路由选择策略,更新已存储的第二路由选择策略。
在具体实现中,用户设备在采用下发的第一路由选择策略更新已存储的第二路由选择策略时,可基于全量更新或动量更新的方式,更新已存储的第二路由选择策略。其中,全量更新的方式包括:采用下发的第一路由选择策略直接替换已存储的第二路由选择策略;动量更新的方式包括:确定相对于已存储的第二路由选择策略而言,下发的第一路由选择策略中存在更新的内容,采用该存在更新的内容替换已存储的第二路由选择策略中的相应内容。
本申请实施例通过在路由选择策略中引入策略生成属性这一参数,使得用户设备在接收到网络设备下发的第一路由选择策略后,可先根据该下发的第一路由选择策略中的第一策略生成属性,准确地判断出是否需对本地空间已存储的第二路由选择策略进行路由选择策略更新,从而在确定需进行路由选择策略更新时,再采用网络设备下发的第一路由选择策略来及时更新已存储的第二路由选择策略。这样的更新方式,一方面可避免在下发的路由选择策略和已存储的路由选择策略相同的情况下,仍执行策略更新操作的问题,可保证策略更新操作的有效性,避免处理资源的浪费,实现路由选择策略的有效更新;另一方面,可在保证无需改变路由选择策略的策略分段标识PSI的情况下,优化路由选择策略的更新机制,避免因通过比对PSI而导致误判路由选择策略无需更新的情况,从而减少产生路由选择策略的失配问题,实现路由选择策略的及时更新。
请参见图4,是本申请实施例提供的另一种路由选择策略的更新方法,包括用户设备与网络设备之间的交互。如图4所示,该方法可包括以下步骤S401-S405:
S401,用户设备向网络设备上报已存储的第二路由选择策略中的第二策略生成属性。
其中,该第二策略生成属性用于网络设备确定是否需对用户设备进行路由选择策略更新。相应的,网络设备可以接收用户设备上报的策略生成属性;并在接收到用户设备上报的策略生成属性后,执行步骤S402。
S402,网络设备根据上报的第二策略生成属性,确定是否需对用户设备进行路由 选择策略更新。
在具体实现中,网络设备获取最新的路由选择策略,比对上报的第二策略生成属性和最新的路由选择策略中的策略生成属性。若上报的第二策略生成属性与最新的路由选择策略中的策略生成属性不同,则确定需对用户设备进行路由选择策略更新,并将最新的路由选择策略作为第一路由选择策略;若上报的第二策略生成属性与最新的路由选择策略中的策略生成属性相同,则确定无需对用户设备进行路由选择策略更新。
其中,此处所提及的最新的路由选择策略是指:在网络设备或UDR中所存储的该用户设备所对应的最新的URSP。
在一种实施方式中,当最新的路由选择策略位于UDR中时,网络设备可向UDR发送一个属性查询请求,以请求UDR返回该最新的路由选择策略中的策略生成属性,从而执行后续的策略生成属性的比对操作。
在另一种实施方式中,当最新的路由选择策略位于UDR中时,网络设备可向UDR发送一个策略获取请求,该策略获取请求中包括最新的路由选择策略的PSI,策略获取请求用于请求UDR返回对应于该PSI的最新的路由选择策略,从而在接收到UDR返回的路由选择策略后,从UDR返回的路由选择策略中提取出策略生成属性,进而执行后续的策略生成属性的比对操作。
在另一种实施方式中,在最新的路由选择策略位于UDR中时,网络设备可向UDR发送一个策略更新判断请求,以请求UDR根据上报的策略生成属性确定是否需对用户设备进行路由选择策略更新。在此情况下,策略更新判断请求中可包括最新的路由选择策略的PSI和上报的第二策略生成属性;UDR可根据策略更新判断请求中的PSI确定最新的路由选择策略,并比对策略获取请求中的第二策略生成属性和最新的路由选择策略中的策略生成属性,从而使得UDR在检测到两个策略生成属性不同时,向网络设备返回对应于该PSI的最新的路由选择策略以及比对结果,在检测到两个策略生成属性相同时,UDR返回比对结果给网络设备。
可选的,用户设备除了可向网络设备上报已存储的第二路由选择策略中的第二策略生成属性以外,还可向网络设备上报第二路由选择策略的策略分段标识第二PSI,该第二PSI用于网络设备确定是否需对用户设备进行路由选择策略更新。其中,用户设备可以通过一条信令,将已存储的第二路由选择策略中的第二策略生成属性和相应的第二PSI上报给网络设备,也可以通过不同的信令,分别将已存储的第二路由选择策略中的第二策略生成属性和相应的第二PSI上报给网络设备,对此不作限定。
在此情况下,网络设备还可接收用户设备上报的第二策略分段标识PSI。然后,网络设备可比对上报的第二PSI和最新的路由选择策略的PSI,以及比对上报的第二策略生成属性和最新的路由选择策略中的策略生成属性。若上报的第二PSI与最新的路由选择策略的PSI相同,且上报的第二策略生成属性与最新的路由选择策略中的策略生成属性不同,则确定需进行路由选择策略更新,并将最新的路由选择策略作为第一路由选择策略;若上报的第二PSI与最新的路由选择策略的PSI相同,且所述上报的第二策略生成属性与最新的路由选择策略中的策略生成属性相同,则确定无需进行路由选择策略更新。
在最新的路由选择策略以及相应的PSI位于UDR中时,一种实施方式如图5a所示,其中,
在步骤S501中,网络设备50a请求UDR50b返回最新的路由选择策略中的策略生成 属性以及相应的PSI。
在步骤S502中,用户设备50c上报已存储的第二路由选择策略中的第二策略生成属性以及相应的第二PSI。
在步骤S503中,网络设备50a比对用户设备50c上报的第二策略生成属性和UDR50b返回的策略生成属性,以及在步骤504中,网络设备50a比对用户设备50c上报的第二PSI和UDR50b返回的PSI。
若用户设备50c上报的第二PSI与UDR50b返回的PSI相同,且用户设备50c上报的第二策略生成属性和UDR50b返回的策略生成属性相同,则在步骤S505中,确定无需进行路由选择策略更新。
若用户设备50c上报的第二PSI与UDR50b返回的PSI相同,且用户设备50c上报的第二策略生成属性和UDR50b返回的策略生成属性不同,则在步骤S506中,确定需进行路由选择策略更新,并将UDR50b返回的最新的路由选择策略作为第一路由选择策略。
另一种实施方式如图5b所示,其中,
在步骤S511中,网络设备50a请求UDR50b返回最新的路由选择策略以及相应的PSI。
在步骤S513中,网络设备50a从UDR50b返回的路由选择策略中提取出策略生成属性,然后在步骤S514中,比对上报的第二策略生成属性和提取出的策略生成属性。
其中,步骤S502、S504、S505和S506的描述,同上图5a。
基于上述描述,当策略生成属性包括版本号参数时,当用户设备发送自身的第二PSI给网络设备时,需要同时发送已存储的第二URSP中的第二版本号参数;在此情况下,网络设备判断是否需进行路由选择策略更新的方法为:将接收到的第二PSI(即用户设备上报的PSI)和最新的URSP的PSI进行比对,以及将接收到的第二版本号参数(即用户设备上报的版本号参数)和最新的URSP中的版本号参数进行比对。当两个PSI相同时,但是两个版本号参数不同时,网络设备可确定需进行路由选择策略更新,此时可发起URSP的更新流程以触发向用户设备下发最新的URSP。当两个PSI相同以及两个版本号参数均相同时,网络设备确定UE中已存储的第二URSP是最新的,且不需要更新。
基于上述描述,当策略生成属性包括时间戳参数时,当用户设备发送自身的第二PSI给网络设备时,需要同时发送已存储的第二URSP中的第二时间戳参数;在此情况下,网络设备判断是否需进行路由选择策略更新的方法为:将接收到的第二PSI(即用户设备上报的PSI)和最新的URSP的PSI进行比对,以及将接收到的第二时间戳参数(即用户设备上报的时间戳参数)和最新的URSP中的时间戳参数进行比对。当两个PSI相同时,但是两个时间戳参数不同时,网络设备可确定需进行路由选择策略更新,此时可发起URSP的更新流程以触发向用户设备下发最新的URSP。当两个PSI相同以及两个时间戳参数均相同时,网络设备确定UE中已存储的第二URSP是最新的,且不需要更新。
需要说明的是,网络设备在执行将上报的第二PSI和最新的路由选择策略的PSI进行比对的步骤,以及执行将上报的第二策略生成属性与最新的路由选择策略中的策略生成属性进行比对的步骤时,可同时执行这两个步骤,也可按照一定的先后顺序执行这两个步骤,本申请实施例对此不作限定。并且,可选的,若比对PSI这一步骤的执行顺序先于比对策略生成属性这一步骤的执行顺序,则网络设备通过比对PSI发现两个PSI不同时,可以直接确定需进行路由选择策略更新,无需进一步执行策略生成属性的 比对操作,这样可有效节省处理资源。
另外,在最新的路由选择策略位于UDR中时,网络设备也可将UE上报的第二PSI和UE上报的第二策略生成属性发送给UDR,使UDR执行比对上报的第二PSI和最新的路由选择策略的PSI,以及比对上报的第二策略生成属性和最新的路由选择策略中的策略生成属性的步骤,从而向网络设备返回比对结果;以及,在确定需进行路由选择策略更新时,向网络设备返回最新的路由选择策略。
S403,若根据第二策略生成属性确定需对用户设备进行路由选择策略更新,则网络设备触发执行向用户设备下发第一路由选择策略的步骤,即触发执行步骤S404。
S404,网络设备向用户设备下发第一路由选择策略。
由前述可知,网络设备是在确定需对用户设备进行路由选择策略更新后,向用户设备下发第一路由选择策略的;并且,下发的第一路由选择策略中的第一策略生成属性用于用户设备确定是否需进行路由选择策略更新。在用户设备确定需进行路由选择策略更新时,下发的第一路由选择策略用于更新用户设备中已存储的第二路由选择策略。
S405,用户设备在根据下发的第一路由选择策略中的第一策略生成属性,确定需进行路由选择策略更新时,采用下发的第一路由选择策略,更新已存储的第二路由选择策略。
本申请实施例通过在路由选择策略中引入策略生成属性这一参数,使得网络设备在接收到用户设备上报的策略生成属性后,可通过比对最新的URSP中的策略生成属性和用户设备上报的策略生成属性是否相同,来准确地判断出用户设备中的URSP是否需要进行更新,以在确定需要进行更新的情况下,将最新的URSP下发至用户设备以使用户设备进行路由选择策略更新,这样可避免因通过比对PSI而导致误判路由选择策略无需更新的情况,从而减少产生路由选择策略的失配问题,实现路由选择策略的及时更新。并且,用户设备在接收到网络设备下发的URSP后,也可通过比对网络设备下发的URSP中的策略生成属性和已存储的策略生成属性是否相同,来确定是否采用网络设备下发的URSP执行策略更新操作,这样可保证策略更新操作的有效性,避免处理资源的浪费,实现URSP的有效更新。
需要说明的是,上述图2和图4所示的方法实施例,均是以在路由选择策略中添加策略生成属性为例进行说明的。在其他实施例中,也可在PSI中添加策略生成属性以标识URSP规则内容的不同版本;示例性的,当策略生成属性为版本号参数时,PSI可包括如下三部分:
a)PLMN标识部分,该部分包含提供路由选择策略的PCF的PLMN的标识;
b)路由选择策略代码(UE policy section code,UPSC),该路由选择策略代码包含由PCF选择的PLMN中的唯一值;
c)URSP的版本号参数。
其中,当PLMN确定、UPSC确定时,网络设备每次更新URSP规则时,都会给该URSP规则分配新的版本号参数,如版本号参数+1。
基于此,当在PSI中引入策略生成属性时,本申请实施例还提出了一种相应的路由选择策略的更新方法,包括用户设备和网络设备之间的交互。参见图6所示,该方法可包括以下步骤S601-S605:
S601,用户设备向网络设备上报已存储的第二路由选择策略的第二PSI,该上报的第二PSI用于网络设备确定是否需对用户设备进行路由选择策略更新,上报的第二PSI中可包括已存储的第二路由选择策略的第二策略生成属性。
相应的,网络设备可以接收用户设备上报的第二PSI;并在接收到用户设备上报的第二PSI后,可先比对上报的第二PSI中的a)与最新的路由选择策略的PSI中的a),以及比对上报的第二PSI中的b)与最新的路由选择策略的PSI中的b);当两个PSI中的a)和b)均相同时,可触发执行步骤S602。
S602,网络设备根据上报的第二PSI中的第二策略生成属性,确定是否需对用户设备进行路由选择策略更新。
在具体实现中,网络设备可比对上报的第二PSI中的第二策略生成属性和最新的路由选择策略的PSI中的策略生成属性。若第二策略生成属性与当前的PSI中的策略生成属性不同,则确定需对用户设备进行路由选择策略更新;若第二策略生成属性与当前的PSI中的策略生成属性相同,则确定无需对用户设备进行路由选择策略更新。
基于上述描述,当策略生成属性包括版本号参数时,网络设备判断是否需进行路由选择策略更新的方法为:根据UE上报的第二PSI中的各部分内容,与从UDR中取回的PSI中的各部分内容进行比对。当两个PSI中的a)和b)相同,但c)不同时,网络设备确定用户设备中的URSP规则需要更新,此时可下发更新后的URSP(即最新的URSP)给UE。当两个PSI中的a)、b)和c)完全相同时,网络设备确定用户设备中的URSP规则不需要进行更新。
需要说明的是,当策略生成属性包括时间戳参数时,网络设备判断是否需进行路由选择策略更新的逻辑与此处所提及的逻辑类似,在此不再赘述。
S603,若根据上报的第二PSI中的第二策略生成属性确定需对用户设备进行路由选择策略更新,则网络设备触发执行向用户设备下发第一路由选择策略的步骤,即触发执行步骤S604。
S604,网络设备向用户设备下发第一路由选择策略以及相应的第一PSI。
相应的,用户设备可接收网络设备下发的第一路由选择策略以及相应的第一PSI。并且,用户设备在接收到网络设备下发的第一PSI后,可先比对下发的第一PSI中的a)与已存储的PSI中的a),以及比对下发的第一PSI中的b)与已存储的PSI中的b);当两个PSI中的a)和b)均相同时,可触发执行步骤S605
S605,用户设备在根据下发的第一PSI中的第一策略生成属性,确定需进行路由选择策略更新时,采用下发的第一路由选择策略,更新已存储的第二路由选择策略。
在具体实现中,用户设备可比对下发的第一PSI中的第一策略生成属性和已存储的第二PSI中的第二策略生成属性。若第一策略生成属性与第二策略生成属性不同,则确定需对用户设备进行路由选择策略更新;若第一策略生成属性与第二策略生成属性相同,则确定无需对用户设备进行路由选择策略更新。
基于上述描述,当策略生成属性包括版本号参数时,用户设备判断是否需进行路由选择策略更新的方法为:根据网络设备下发的第二PSI中的各部分内容与已存储的PSI中的各部分内容进行比对。当两个PSI中的a)和b)相同时,用户设备确定两个PSI对应同一个URSP;当时只有当c)版本号参数也相同时,用户设备才确定下发的第一URSP和已存储的第二URSP相同。当c)版本号参数不同时,用户设备确定已存储的第二URSP中的规则需要进行更新,并和网络设备下发的最新的URSP中的规则进行同步。
需要说明的是,当策略生成属性包括时间戳参数时,用户设备判断是否需进行路由选择策略更新的逻辑与此处所提及的逻辑类似,在此不再赘述。
本申请实施例通过在PSI中引入策略生成属性这一参数,使得网络设备在接收到用户设备上报的第二PSI后,可通过比对两个PSI中的策略生成属性是否相同,来准确地判断出用户设备中的URSP是否需要进行更新,以在确定需要进行更新的情况下,将最新的URSP下发至用户设备以使用户设备进行路由选择策略更新,这样可避免因通过比对PSI的a)和b)而导致误判路由选择策略无需更新的情况,从而减少产生路由选择策略的失配问题,实现路由选择策略的及时更新。并且,用户设备在接收到网络设备下发的URSP以及相应的PSI后,也可通过比对两个PSI中的策略生成属性是否相同,来确定是否采用网络设备下发的URSP执行策略更新操作,这样可保证策略更新操作的有效性,避免处理资源的浪费,实现URSP的有效更新。
基于上述方法实施例的相关描述,本申请实施例还公开了一种路由选择策略的更新装置,所述路由选择策略的更新装置可以是运行于用户设备中的一个计算机程序(包括程序代码)。请参见图7,所述路由选择策略的更新装置可以运行如下单元:接收单元701、更新单元702以及上报单元703等。
根据本申请的另一个实施例,图7所示的路由选择策略的更新装置中的各个单元可以分别或全部合并为一个或若干个另外的单元来构成,或者其中的某个(些)单元还可以再拆分为功能上更小的多个单元来构成,这可以实现同样的操作,而不影响本申请的实施例的技术效果的实现。上述单元是基于逻辑功能划分的,在实际应用中,一个单元的功能也可以由多个单元来实现,或者多个单元的功能由一个单元实现。在本申请的其它实施例中,基于路由选择策略的更新装置也可以包括其它单元,在实际应用中,这些功能也可以由其它单元协助实现,并且可以由多个单元协作实现。
根据本申请的另一个实施例,可以通过在包括中央处理单元(CPU)、随机存取存储介质(RAM)、只读存储介质(ROM)等处理元件和存储元件的例如计算机的通用计算设备上运行能够执行上述所提及的路由选择策略的更新方法所涉及的各步骤的计算机程序(包括程序代码),来构造如图7中所示的路由选择策略的更新装置设备,以及来实现本申请实施例的路由选择策略的更新方法。所述计算机程序可以记载于例如计算机可读记录介质上,并通过计算机可读记录介质装载于上述计算设备中,并在其中运行。
在一个实施例中,路由选择策略的更新装置中的各单元可以用于执行如下操作:
接收单元701,用于接收网络设备下发的第一路由选择策略,所述第一路由选择策略包括第一策略生成属性;
更新单元702,用于在根据所述第一策略生成属性确定需进行路由选择策略更新时,采用所述第一路由选择策略,更新已存储的第二路由选择策略。
在一种实施方式中,更新单元702还可用于:
将所述第一策略生成属性与所述第二路由选择策略中的第二策略生成属性,进行比对;
若所述第一策略生成属性与所述第二策略生成属性不同,则确定需进行路由选择策略更新;
若所述第一策略生成属性与所述第二策略生成属性相同,则确定无需进行路由选 择策略更新。
另一种实施方式中,接收单元701还可用于:接收所述网络设备下发的所述第一路由选择策略的第一策略分段标识PSI;
更新单元702还可用于:将下发的所述第一PSI和所述第二路由选择策略的第二PSI进行比对,以及将所述第一策略生成属性与所述第二路由选择策略中的第二策略生成属性进行比对;若所述第一PSI与所述第二PSI相同,且所述第一策略生成属性与所述第二策略生成属性不同,则确定需进行路由选择策略更新;若所述第一PSI与所述第二PSI相同,且所述第一策略生成属性与所述第二策略生成属性相同,则确定无需进行路由选择策略更新。
另一种实施方式中,上报单元703可用于:向所述网络设备上报所述第二路由选择策略中的第二策略生成属性;其中,所述第二策略生成属性用于所述网络设备确定是否需对所述用户设备进行路由选择策略更新;且所述网络设备在确定需对所述用户设备进行路由选择策略更新后,向所述用户设备下发所述第一路由选择策略。
另一种实施方式中,上报单元703还可用于:
向所述网络设备上报所述第二路由选择策略的第二策略分段标识PSI;
其中,所述第二PSI用于所述网络设备确定是否需对所述用户设备进行路由选择策略更新。
本申请实施例通过在路由选择策略中引入策略生成属性这一参数,使得用户设备在接收到网络设备下发的路由选择策略后,可先根据该下发的路由选择策略中的策略生成属性,来准确地判断是否需对本地空间已存储的路由选择策略进行路由选择策略更新,从而在确定需进行路由选择策略更新时,再采用网络设备下发的路由选择策略来及时更新已存储的路由选择策略。这样的更新方式,一方面可避免在下发的路由选择策略和已存储的路由选择策略相同的情况下,仍执行策略更新操作的问题,可保证策略更新操作的有效性,避免处理资源的浪费,实现路由选择策略的有效更新;另一方面,可在保证无需改变路由选择策略的策略分段标识PSI的情况下,优化路由选择策略的更新机制,避免因通过比对PSI而导致误判路由选择策略无需更新的情况,从而减少产生路由选择策略的失配问题,实现路由选择策略的及时更新。
在另一个实施例中,路由选择策略的更新装置中的各单元可以用于执行如下操作:
接收单元701,用于接收网络设备下发的第一路由选择策略和相应的第一策略分段标识PSI,所述第一PSI中包括所述第一路由选择策略的第一策略生成属性;
更新单元702,用于在根据所述第一PSI中的第一策略生成属性确定需进行路由选择策略更新时,采用所述第一路由选择策略,更新已存储的第二路由选择策略。
在一种实施方式中,上报单元703可用于:
向网络设备上报已存储的第二路由选择策略的第二PSI,该第二PSI用于网络设备确定是否需对用户设备进行路由选择策略更新,第二PSI中包括第二策略生成属性。
另一种实施方式中,接收单元701还可用于:接收网络设备下发的第一路由选择策略以及相应的第一PSI。
另一种实施方式中,更新单元702还可用于:
比对下发的第一PSI中的第一策略生成属性和已存储的第二PSI中的第二策略生成属性;
若所述第一策略生成属性与所述第二策略生成属性不同,则确定需对用户设备进 行路由选择策略更新;
若所述第一策略生成属性与所述第二策略生成属性相同,则确定无需对用户设备进行路由选择策略更新。
另一种实施方式中,更新单元702还可用于:
比对所述第一PSI中的PLMN标识与所述第二PSI中的PLMN标识,以及比对所述第一PSI中的路由选择策略代码与所述第二PSI中的路由选择策略代码;
当两个PSI中的PLMN标识和路由选择策略代码均相同时,触发执行比对所述第一策略生成属性和所述第二策略生成属性的步骤。
本申请实施例通过在路由选择策略的PSI中引入策略生成属性这一参数,使得用户设备在接收到网络设备下发的路由选择策略和相应的PSI后,可先根据该下发的PSI中的策略生成属性,来准确地判断是否需对本地空间已存储的路由选择策略进行路由选择策略更新,从而在确定需进行路由选择策略更新时,采用网络设备下发的路由选择策略来及时更新已存储的路由选择策略。这样的更新方式,一方面可避免在下发的路由选择策略和已存储的路由选择策略相同的情况下,仍执行策略更新操作的问题,可保证策略更新操作的有效性,避免处理资源的浪费,实现路由选择策略的有效更新;另一方面,可优化路由选择策略的更新机制,避免因通过比对PSI中的现有内容而导致误判路由选择策略无需更新的情况,从而减少产生路由选择策略的失配问题,实现路由选择策略的及时更新。
基于上述方法实施例的相关描述,本申请实施例还公开了一种路由选择策略的更新装置,所述路由选择策略的更新装置可以是运行于网络设备中的一个计算机程序(包括程序代码)。请参见图8,所述路由选择策略的更新装置可以运行如下单元:接收单元801、下发单元803以及处理单元803等。
根据本申请的另一个实施例,图8所示的路由选择策略的更新装置中的各个单元可以分别或全部合并为一个或若干个另外的单元来构成,或者其中的某个(些)单元还可以再拆分为功能上更小的多个单元来构成,这可以实现同样的操作,而不影响本申请的实施例的技术效果的实现。上述单元是基于逻辑功能划分的,在实际应用中,一个单元的功能也可以由多个单元来实现,或者多个单元的功能由一个单元实现。在本申请的其它实施例中,基于路由选择策略的更新装置也可以包括其它单元,在实际应用中,这些功能也可以由其它单元协助实现,并且可以由多个单元协作实现。
根据本申请的另一个实施例,可以通过在包括中央处理单元(CPU)、随机存取存储介质(RAM)、只读存储介质(ROM)等处理元件和存储元件的例如计算机的通用计算设备上运行能够执行上述所提及的路由选择策略的更新方法所涉及的各步骤的计算机程序(包括程序代码),来构造如图8中所示的路由选择策略的更新装置设备,以及来实现本申请实施例的路由选择策略的更新方法。所述计算机程序可以记载于例如计算机可读记录介质上,并通过计算机可读记录介质装载于上述计算设备中,并在其中运行。
在一个实施例中,路由选择策略的更新装置中的各单元可以用于执行如下操作:
接收单元801,用于接收用户设备上报的第二策略生成属性;
下发单元802,用于若根据所述第二策略生成属性确定需对所述用户设备进行路由选择策略更新,则向所述用户设备下发第一路由选择策略,所述第一路由选择策略 包括第一策略生成属性;
其中,所述第一策略生成属性用于所述用户设备确定是否需进行路由选择策略更新;在所述用户设备确定需进行路由选择策略更新时,所述第一路由选择策略用于更新所述用户设备中已存储的第二路由选择策略。
在一种实施方式中,下发单元802还可用于:
向所述用户设备下发所述第一路由选择策略的第一策略分段标识PSI,所述第一PSI用于所述用户设备确定是否需进行路由选择策略更新。
另一种实施方式中,接收单元801还可用于获取最新的路由选择策略;
所述装置还可包括处理单元803,处理单元803可用于:
比对所述第二策略生成属性和所述最新的路由选择策略中的策略生成属性;
若所述第二策略生成属性与所述最新的路由选择策略中的策略生成属性不同,则确定需对所述用户设备进行路由选择策略更新,并将所述最新的路由选择策略作为所述第一路由选择策略;
若所述上报的策略生成属性与所述最新的路由选择策略中的策略生成属性相同,则确定无需对所述用户设备进行路由选择策略更新。
另一种实施方式中,接收单元801还可用于获取最新的路由选择策略;接收所述用户设备上报的第二策略分段标识PSI;
处理单元803还可用于:比对所述第二PSI和所述最新的路由选择策略的PSI,以及比对所述第二策略生成属性和所述最新的路由选择策略中的策略生成属性;
若所述第二PSI与所述最新的路由选择策略的PSI相同,且所述第二策略生成属性与所述最新的路由选择策略中的策略生成属性不同,则确定需进行路由选择策略更新,并将所述最新的路由选择策略作为所述第一路由选择策略;
若所述第二PSI与所述最新的路由选择策略的PSI相同,且所述第二策略生成属性与所述最新的路由选择策略中的策略生成属性相同,则确定无需进行路由选择策略更新。
本申请实施例通过在路由选择策略中引入策略生成属性这一参数,使得用户设备可将已存储的路由选择策略中的策略生成属性上报给网络设备,从而使得网络设备可根据上报的策略生成属性来判断是否需对用户设备进行路由选择策略更新,以在确定需对用户设备进行路由选择策略更新时,向用户设备下发最新的路由选择策略;这样可避免因通过比对PSI而导致误判路由选择策略无需更新的情况,从而减少产生路由选择策略的失配问题,实现路由选择策略的及时更新。并且,网络设备通过向用户设备下发一个内含策略生成属性的路由选择策略,还可使得用户设备可先根据该下发的路由选择策略中的策略生成属性,来准确地判断是否需对本地空间已存储的路由选择策略进行路由选择策略更新,从而在确定需进行路由选择策略更新时,再采用网络设备下发的路由选择策略来及时更新已存储的路由选择策略。这样的更新方式可避免在下发的路由选择策略和已存储的路由选择策略相同的情况下,仍执行策略更新操作的问题,可保证策略更新操作的有效性,避免处理资源的浪费,实现路由选择策略的有效更新。
在另一个实施例中,路由选择策略的更新装置中的各单元可以用于执行如下操作:
下发单元802,用于向用户设备下发第一路由选择策略和相应的第一策略分段标识PSI,所述第一PSI中包括所述第一路由选择策略的第一策略生成属性;
其中,所述第一策略生成属性用于所述用户设备确定是否需进行路由选择策略更 新;在所述用户设备确定需进行路由选择策略更新时,所述第一路由选择策略用于更新所述用户设备中已存储的第二路由选择策略。
在一种实施方式中,接收单元801可用于:接收用户设备上报的第二PSI;
处理单元803可用于:根据所述第二PSI中的第二策略生成属性,确定是否需对用户设备进行路由选择策略更新。
另一种实施方式中,处理单元803还可用于:
比对所述第二PSI中的PLMN标识与最新的路由选择策略的PSI中的PLMN标识,以及比对所述第二PSI中的路由选择策略代码与最新的路由选择策略的PSI中的路由选择策略代码;
当两个PSI中的PLMN标识和路由选择策略代码均相同时,可触发执行根据所述第二PSI中的第二策略生成属性,确定是否需对用户设备进行路由选择策略更新的步骤。
另一种实施方式中,处理单元803在用于根据所述第二PSI中的第二策略生成属性,确定是否需对用户设备进行路由选择策略更新时,可具体用于:
比对所述第二PSI中的第二策略生成属性和最新的路由选择策略的PSI中的策略生成属性;
若所述第二策略生成属性与最新的PSI中的策略生成属性不同,则确定需对用户设备进行路由选择策略更新;
若所述第二策略生成属性与最新的PSI中的策略生成属性相同,则确定无需对用户设备进行路由选择策略更新。
本申请实施例通过在路由选择策略的PSI中引入策略生成属性这一参数,使得网络设备可向用户设备下发一个内含策略生成属性的PSI,从而使得用户设备可先根据该下发的PSI中的策略生成属性,来准确地判断是否需对本地空间已存储的路由选择策略进行路由选择策略更新,从而在确定需进行路由选择策略更新时,采用网络设备下发的路由选择策略来及时更新已存储的路由选择策略。这样的更新方式,一方面可避免在下发的路由选择策略和已存储的路由选择策略相同的情况下,仍执行策略更新操作的问题,可保证策略更新操作的有效性,避免处理资源的浪费,实现路由选择策略的有效更新;另一方面,可优化路由选择策略的更新机制,避免因通过比对PSI中的现有内容而导致误判路由选择策略无需更新的情况,从而减少产生路由选择策略的失配问题,实现路由选择策略的及时更新。
基于上述方法实施例以及装置实施例的描述,本申请实施例还提供一种用户设备。请参见图9,该用户设备至少包括处理器901、输入接口902、输出接口903以及计算机可读存储介质904。其中,用户设备内的处理器901、输入接口902、输出接口903以及计算机可读存储介质904可通过总线或其他方式连接。计算机可读存储介质904可以存储在用户设备的存储器中,所述计算机可读存储介质904用于存储计算机程序,所述计算机程序包括程序指令,所述处理器901用于执行所述计算机可读存储介质904存储的程序指令。处理器901(或称CPU(Central Processing Unit,中央处理器))是用户设备的计算核心以及控制核心,其适于实现一条或多条指令,具体适于加载并执行一条或多条指令从而实现相应方法流程或相应功能。
在一个实施例中,本申请实施例所述的处理器901可以用于进行一系列的路由选择策略的更新处理,具体包括:接收网络设备下发的第一路由选择策略,所述第一路 由选择策略包括第一策略生成属性;及,在根据所述第一策略生成属性确定需进行路由选择策略更新时,采用所述第一路由选择策略,更新已存储的第二路由选择策略。或者,本申请实施例所述的处理器901可以用于进行一系列的路由选择策略的更新处理,具体包括:接收网络设备下发的第一路由选择策略和相应的第一策略分段标识PSI,所述第一PSI中包括所述第一路由选择策略的第一策略生成属性;在所述第一策略生成属性确定需进行路由选择策略更新时,采用所述第一路由选择策略,更新已存储的第二路由选择策略,等等。
基于上述方法实施例以及装置实施例的描述,本申请实施例还提供一种网络设备。请参见图10,该网络设备至少包括处理器1001、输入接口1002、输出接口1003以及计算机可读存储介质1004。其中,网络设备内的处理器1001、输入接口1002、输出接口1003以及计算机可读存储介质1004可通过总线或其他方式连接。计算机可读存储介质1004可以存储在网络设备的存储器中,所述计算机可读存储介质1004用于存储计算机程序,所述计算机程序包括程序指令,所述处理器1001用于执行所述计算机可读存储介质1004存储的程序指令。处理器1001(或称CPU(Central Processing Unit,中央处理器))是网络设备的计算核心以及控制核心,其适于实现一条或多条指令,具体适于加载并执行一条或多条指令从而实现相应方法流程或相应功能。
在一个实施例中,本申请实施例所述的处理器1001可以用于进行一系列的路由选择策略的更新处理,具体包括:接收用户设备上报的第二策略生成属性;若根据所述第二策略生成属性确定需对所述用户设备进行路由选择策略更新,则向所述用户设备下发第一路由选择策略,所述第一路由选择策略包括第一策略生成属性;其中,所述第一策略生成属性用于所述用户设备确定是否需进行路由选择策略更新;在所述用户设备确定需进行路由选择策略更新时,所述第一路由选择策略用于更新所述用户设备中已存储的第二路由选择策略。或者,本申请实施例所述的处理器1001可以用于进行一系列的路由选择策略的更新处理,具体包括:向用户设备下发第一路由选择策略和相应的第一策略分段标识PSI,所述第一PSI中包括所述第一路由选择策略的第一策略生成属性;其中,所述第一策略生成属性用于所述用户设备确定是否需进行路由选择策略更新;在所述用户设备确定需进行路由选择策略更新时,所述第一路由选择策略用于更新所述用户设备中已存储的第二路由选择策略。
本申请实施例还提供了一种计算机可读存储介质(Memory),所述计算机可读存储介质是计算机设备(如前述所提及的用户设备或网络设备)中的记忆设备,用于存放程序和数据。可以理解的是,此处的计算机可读存储介质既可以包括计算机设备中的内置存储介质,当然也可以包括计算机设备所支持的扩展存储介质。计算机可读存储介质提供存储空间,该存储空间存储了计算机设备的操作系统。并且,在该存储空间中还存放了适于被处理器加载并执行的一条或多条的指令,这些指令可以是一个或一个以上的计算机程序(包括程序代码)。需要说明的是,此处的计算机可读存储介质可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器;可选的,还可以是至少一个位于远离前述处理器的计算机可读存储介质。
(一)当计算机设备为用户设备时:
①在一个实施例中,可由处理器加载并执行计算机可读存储介质中存放的一条或多条指令,以实现上述有关图2或图4所示的路由选择策略的更新方法实施例中的相应 步骤。
②在另一个实施例中,可由处理器加载并执行计算机可读存储介质中存放的一条或多条指令,以实现上述有关图6所示的路由选择策略的更新方法实施例中的相应步骤。
(二)当计算机设备为网络设备时:
①在一个实施例中,可由处理器加载并执行计算机可读存储介质中存放的一条或多条指令,以实现上述有关图2或图4所示的路由选择策略的更新方法实施例中的相应步骤。
②在另一个实施例中,可由处理器加载并执行计算机可读存储介质中存放的一条或多条指令,以实现上述有关图6所示的路由选择策略的更新方法实施例中的相应步骤。
需要说明的是,根据本申请实施例的一个方面,还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述图2或图4或图6所示的路由选择策略的更新方法实施例方面的各种可选方式中提供的方法。
并且,应理解的是,以上所揭露的仅为本申请较佳实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。

Claims (19)

  1. 一种路由选择策略的更新方法,由用户设备执行,包括:
    接收网络设备下发的第一路由选择策略,所述第一路由选择策略包括第一策略生成属性;及,
    在根据所述第一策略生成属性确定需进行路由选择策略更新时,采用所述第一路由选择策略,更新已存储的第二路由选择策略。
  2. 如权利要求1所述的方法,其中,所述第一策略生成属性包括:所述第一路由选择策略的第一版本号参数。
  3. 如权利要求1所述的方法,其中,所述第一策略生成属性包括:所述第一路由选择策略的第一时间戳参数,所述第一时间戳参数用于指示所述第一路由选择策略的生成时间。
  4. 如权利要求1-3任一项所述的方法,还包括:
    将所述第一策略生成属性与所述第二路由选择策略中的第二策略生成属性,进行比对;
    若所述第一策略生成属性与所述第二策略生成属性不同,则确定需进行路由选择策略更新;
    若所述第一策略生成属性与所述第二策略生成属性相同,则确定无需进行路由选择策略更新。
  5. 如权利要求1-3任一项所述的方法,还包括:
    接收所述网络设备下发的所述第一路由选择策略的第一策略分段标识PSI,并将下发的所述第一PSI和所述第二路由选择策略的第二PSI进行比对,以及将所述第一策略生成属性与所述第二路由选择策略中的第二策略生成属性进行比对;
    若所述第一PSI与所述第二PSI相同,且所述第一策略生成属性与所述第二策略生成属性不同,则确定需进行路由选择策略更新;
    若所述第一PSI与所述第二PSI相同,且所述第一策略生成属性与所述第二策略生成属性相同,则确定无需进行路由选择策略更新。
  6. 如权利要求1-3任一项所述的方法,还包括:
    向所述网络设备上报所述第二路由选择策略中的第二策略生成属性;
    其中,所述第二策略生成属性用于所述网络设备确定是否需对所述用户设备进行路由选择策略更新;且所述网络设备在确定需对所述用户设备进行路由选择策略更新后,向所述用户设备下发所述第一路由选择策略。
  7. 如权利要求6所述的方法,还包括:
    向所述网络设备上报所述第二路由选择策略的第二策略分段标识PSI;
    其中,所述第二PSI用于所述网络设备确定是否需对所述用户设备进行路由选择策略更新。
  8. 一种路由选择策略的更新方法,由网络设备执行,包括:
    接收用户设备上报的第二策略生成属性;
    若根据所述第二策略生成属性确定需对所述用户设备进行路由选择策略更新,则向所述用户设备下发第一路由选择策略,所述第一路由选择策略包括第一策略生成属性;
    其中,所述第一策略生成属性用于所述用户设备确定是否需进行路由选择策略更新;在所述用户设备确定需进行路由选择策略更新时,所述第一路由选择策略用于更新所述用户设备中已存储的第二路由选择策略。
  9. 如权利要求8所述的方法,其中,所述第二策略生成属性包括:所述第二路由选择策略的第二版本号参数;
    所述第一策略生成属性包括:所述第一路由选择策略的第一版本号参数。
  10. 如权利要求8所述的方法,其中,所述第二策略生成属性包括:所述第二路由选择策略的第二时间戳参数,所述第二时间戳参数用于指示所述第二路由选择策略的生成时间;
    所述第一策略生成属性包括:所述第一路由选择策略的第一时间戳参数,所述第一时间戳参数用于指示所述第一路由选择策略的生成时间。
  11. 如权利要求8-10任一项所述的方法,还包括:
    向所述用户设备下发所述第一路由选择策略的第一策略分段标识PSI,所述第一PSI用于所述用户设备确定是否需进行路由选择策略更新。
  12. 如权利要求8-10任一项所述的方法,还包括:
    获取最新的路由选择策略;
    比对所述第二策略生成属性和所述最新的路由选择策略中的策略生成属性;
    若所述第二策略生成属性与所述最新的路由选择策略中的策略生成属性不同,则确定需对所述用户设备进行路由选择策略更新,并将所述最新的路由选择策略作为所述第一路由选择策略;
    若所述上报的策略生成属性与所述最新的路由选择策略中的策略生成属性相同,则确定无需对所述用户设备进行路由选择策略更新。
  13. 如权利要求8-10任一项所述的方法,还包括:
    获取最新的路由选择策略;
    接收所述用户设备上报的第二策略分段标识PSI,比对所述第二PSI和所述最新的路由选择策略的PSI,以及比对所述第二策略生成属性和所述最新的路由选择策略中的策略生成属性;
    若所述第二PSI与所述最新的路由选择策略的PSI相同,且所述第二策略生成属性与所述最新的路由选择策略中的策略生成属性不同,则确定需进行路由选择策略更新,并将所述最新的路由选择策略作为所述第一路由选择策略;
    若所述第二PSI与所述最新的路由选择策略的PSI相同,且所述第二策略生成属性与所述最新的路由选择策略中的策略生成属性相同,则确定无需进行路由选择策略更新。
  14. 一种路由选择策略的更新装置,包括:
    接收单元,用于接收网络设备下发的第一路由选择策略,所述第一路由选择策略包括第一策略生成属性;及,
    更新单元,用于在根据所述第一策略生成属性确定需进行路由选择策略更新时,采用所述第一路由选择策略,更新已存储的第二路由选择策略。
  15. 一种路由选择策略的更新装置,包括:
    接收单元,用于接收用户设备上报的第二策略生成属性;
    下发单元,用于若根据所述第二策略生成属性确定需对所述用户设备进行路由选择策略更新,则向所述用户设备下发第一路由选择策略,所述第一路由选择策略包括第一策略生成属性;
    其中,所述第一策略生成属性用于所述用户设备确定是否需进行路由选择策略更新;在所述用户设备确定需进行路由选择策略更新时,所述第一路由选择策略用于更新所述用户设备中已存储的第二路由选择策略。
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有一条或多条指令,所述一条或多条指令适于由处理器加载并执行如权利要求1-7任一项所述的路由选择策略的更新方法;或者,所述一条或多条指令适于由处理器加载并执行如权利要求8-13任一项所述的路由选择策略的更新方法。
  17. 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,实现如权利要求1-7任一项所述的路由选择策略的更新方法;或者,所述计算机程序被处理器执行时,实现如权利要求8-13任一项所述的路由选择策略的更新方法。
  18. 一种用户设备,包括存储器、处理器及存储在存储器上的计算机程序,所述处理器执行所述计算机程序以实现权利要求1-7任一项所述的方法。
  19. 一种网络设备,包括存储器、处理器及存储在存储器上的计算机程序,所述处理器执行所述计算机程序以实现权利要求8-13任一项所述的方法。
PCT/CN2022/138734 2021-12-30 2022-12-13 路由选择策略的更新方法、装置、相关设备及存储介质 WO2023124983A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22914238.5A EP4387335A1 (en) 2021-12-30 2022-12-13 Route selection policy update method and apparatus, related device, and storage medium
US18/487,906 US20240049101A1 (en) 2021-12-30 2023-10-16 Method, apparatus, related device, and storage medium for updating route selection policy

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111663294.2 2021-12-30
CN202111663294.2A CN116418723A (zh) 2021-12-30 2021-12-30 路由选择策略的更新方法、装置、相关设备及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/487,906 Continuation US20240049101A1 (en) 2021-12-30 2023-10-16 Method, apparatus, related device, and storage medium for updating route selection policy

Publications (1)

Publication Number Publication Date
WO2023124983A1 true WO2023124983A1 (zh) 2023-07-06

Family

ID=86997741

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/138734 WO2023124983A1 (zh) 2021-12-30 2022-12-13 路由选择策略的更新方法、装置、相关设备及存储介质

Country Status (4)

Country Link
US (1) US20240049101A1 (zh)
EP (1) EP4387335A1 (zh)
CN (1) CN116418723A (zh)
WO (1) WO2023124983A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198382A1 (en) * 2004-01-27 2005-09-08 Cisco Technology, Inc. Routing systems and methods for implementing routing policy with reduced configuration and new configuration capabilities
CN105743762A (zh) * 2016-03-25 2016-07-06 迈普通信技术股份有限公司 一种vpls网络中报文转发方法及设备
CN110431805A (zh) * 2017-03-20 2019-11-08 高通股份有限公司 经由控制平面信令的策略通信
CN112913283A (zh) * 2018-08-24 2021-06-04 诺基亚技术有限公司 配置路由选择策略

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198382A1 (en) * 2004-01-27 2005-09-08 Cisco Technology, Inc. Routing systems and methods for implementing routing policy with reduced configuration and new configuration capabilities
CN105743762A (zh) * 2016-03-25 2016-07-06 迈普通信技术股份有限公司 一种vpls网络中报文转发方法及设备
CN110431805A (zh) * 2017-03-20 2019-11-08 高通股份有限公司 经由控制平面信令的策略通信
CN112913283A (zh) * 2018-08-24 2021-06-04 诺基亚技术有限公司 配置路由选择策略

Also Published As

Publication number Publication date
CN116418723A (zh) 2023-07-11
US20240049101A1 (en) 2024-02-08
EP4387335A1 (en) 2024-06-19

Similar Documents

Publication Publication Date Title
US11528770B2 (en) Session management method, apparatus, and system
US11159976B2 (en) Handling of mapped EPS bearer context for invalid QoS flow description
EP3780497B1 (en) Mobile edge computing method and device
EP3734908A1 (en) Communication method, device and system
KR20230007473A (ko) 슬라이스 액세스 방법, 디바이스 및 시스템
JP2014528661A (ja) 移動通信システム及びその移動通信システムで体感性能を改善するための情報処理方法
WO2021243837A1 (zh) 基于ursp规则的应用数据路由方法及用户设备
AU2019390331A1 (en) Data transmission method and device, and terminal
CN110944361B (zh) 用于负载均衡的方法与网元
US10136375B2 (en) Method for service data management, apparatus, and system
WO2023124983A1 (zh) 路由选择策略的更新方法、装置、相关设备及存储介质
US11265950B2 (en) Communication method, network device, and terminal device
CN116803112A (zh) 用于动态发现核心网络中的服务网络节点的方法、网络节点和计算机可读介质
US11160005B2 (en) Method and device for determining service path
US20220006735A1 (en) Network device and packet processing method using same
US9843553B2 (en) Method and device for sending message
JP2019110589A (ja) 無線ネットワークアクセス制御方法、装置、およびシステム
EP3972142B1 (en) Policy control function fallback
US11800578B2 (en) Techniques for handling tunnel errors for multi-tunnel sessions
WO2023109937A1 (zh) 确定应用服务器的方法和装置
EP4333538A1 (en) Communication method, system and apparatus
CN118158235A (zh) 算网融合方法、装置及存储介质
WO2024035818A1 (en) Systems and methods for facilitating ue route selection policy rule enforcement
CN115734172A (zh) 定位信息发送方法、设备、装置及存储介质
CN115884301A (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: 22914238

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022914238

Country of ref document: EP

Effective date: 20240312