WO2021047259A1 - 一种数据管理方法,相关产品及通信系统 - Google Patents

一种数据管理方法,相关产品及通信系统 Download PDF

Info

Publication number
WO2021047259A1
WO2021047259A1 PCT/CN2020/100207 CN2020100207W WO2021047259A1 WO 2021047259 A1 WO2021047259 A1 WO 2021047259A1 CN 2020100207 W CN2020100207 W CN 2020100207W WO 2021047259 A1 WO2021047259 A1 WO 2021047259A1
Authority
WO
WIPO (PCT)
Prior art keywords
session
session record
bsf
pcf
record
Prior art date
Application number
PCT/CN2020/100207
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 EP20863187.9A priority Critical patent/EP4024814A4/en
Publication of WO2021047259A1 publication Critical patent/WO2021047259A1/zh
Priority to US17/691,433 priority patent/US20220201085A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • H04L12/1407Policy-and-charging control [PCC] architecture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Definitions

  • the present invention relates to the field of communication technology, in particular to a data management method, related products and communication systems.
  • the 3rd generation partnership project (3GPP) defines a session binding support function (BSF) device; this BSF device provides the 5G core network (5G core, 5GC) network session binding function, Help network exposure function (NEF) equipment or application function (AF) equipment in the network of multi-policy control function (PCF) equipment, select the user equipment based on the address of the user equipment PCF equipment, so as to apply for quality of service (QoS) policies.
  • BSF session binding support function
  • 5G core 5G core, 5GC
  • NEF Help network exposure function
  • AF application function
  • PCF multi-policy control function
  • the session record is included on the BSF device. After the user device that supports 5G is online, the PCF device calls the service application programming interface (API) of the BSF device to register and cancel the session record, that is, the PCF Trigger the creation or deletion of session records on the BSF.
  • the session record is data related to the session, and may also be referred to as session record data, session record information, or session binding data.
  • the session record information will be deleted after the session ends; for example, the PCF device calls the BSF device's API and sends the session record identifier to the BSF device to instruct the BSF device to delete the session record.
  • various messages may be lost due to bearer network problems or other reasons that the PCF device sends to the BSF device to delete the session record message, or other problems cause the session record to be stored in the BSF without being deleted.
  • These session records that need to be deleted are stored in the BSF device and belong to junk data. The accumulation of junk data will make it impossible to create a new session record on the BSF device, causing the problem that new services cannot be used.
  • a commonly used aging method at present is to perform aging based on timestamps. Assuming aging at a time point of one month, it is considered that session record information over one month is junk data.
  • time stamps for data aging has the problem of incorrectly deleting valid session records, which will cause users to be unable to access the Internet or make voice calls.
  • the embodiment of the present invention provides a data management method, related products and communication systems, which are used to accurately identify and delete junk data, and to ensure the stability of the session under the premise of ensuring the storage capacity of the BSF device.
  • an embodiment of the present invention provides a data management method.
  • a session record is stored in a session binding function BSF device.
  • the session record is created by a policy control function PCF device, and includes: the BSF device sends the PCF device to the PCF device. Send the positioning parameters of the session record; the BSF device receives the response message returned by the PCF device, and determines that the session corresponding to the positioning parameter does not exist on the PCF according to the response message, then deletes the session record .
  • the condition for triggering deletion management can be periodic execution or event triggering.
  • the storage space occupied by the BSF device for storing session records is too high; the above positioning parameters may be able to uniquely identify the session records Or any parameter of the session; because there are usually multiple PCF devices in the network, and different PCF devices manage different sessions, the session record contains information about which PCF the session record corresponds to, such as the address of the PCF, that is PCF Internet Protocol (IP) address and port, or fully qualified domain name (FQDN).
  • IP Internet Protocol
  • FQDN fully qualified domain name
  • the response message can contain any information indicating whether the session exists, for example: error codes that both the BSF device and the PCF device can know the meaning, or the value of an error parameter, etc.
  • the BSF device can send positioning parameters one by one, or send multiple positioning parameters corresponding to the same PCF at one time. If multiple positioning parameters corresponding to the same PCF are sent at one time, in the response message, whether there is a result of a session corresponding to the positioning parameter and the positioning parameter are in a one-to-one correspondence.
  • the method further includes: the BSF device determines that the session record needs to be deleted and managed, and then confirms the PCF device according to the session record. Subsequently, the BSF device may send the positioning parameters of the session record to the PCF device.
  • This embodiment provides conditions for triggering the BSF device to send positioning parameters.
  • the specific content that needs to be deleted and managed for the session record may be: the time that the session record is stored in the device exceeds the threshold, or the time period for sending the positioning parameter is reached . How to specifically set the conditions for deleting and managing the session records can be set according to actual needs, and this embodiment does not make a unique limitation.
  • the BSF device receives a response message returned by the PCF device, and determines according to the response message that the session corresponding to the positioning parameter does not exist on the PCF device, including: the BSF The device receives a response message returned by the PCF device, and the response message carries an error code indicating that the session corresponding to the positioning parameter does not exist on the PCF device; the positioning parameter is determined according to the error code The corresponding session does not exist on the PCF device.
  • the error code is used, and less information can be used to convey the result of whether the session corresponding to the above-mentioned positioning parameter exists in the PCF device.
  • the confirming the PCF device according to the session record includes: reading the address of the PCF device recorded in the session record from the session record;
  • the sending, by the BSF device, the location parameter of the session record to the PCF device includes: the BSF device sending the location parameter of the session record to the address of the PCF device.
  • This embodiment provides a method for determining the PCF device with the address of the PCF device. Since the address of the PCF device exists in the session record, this method can reduce the amount of data processing and send positioning parameters faster.
  • determining that the BSF device needs to delete and manage the session record includes: the BSF device reads the timestamp of the session record from the session record, according to the timestamp Determine the duration of the session record stored in the BSF device; determine that the duration of the session record stored in the BSF device exceeds the validity period of the session record, then execute the sending of the session record to the PCF device The positioning parameters.
  • This embodiment provides a method for determining whether to perform deletion management by combining the time stamp with the validity period of the session record, which can conveniently be accurate to the management of a single session record.
  • the method further includes: if it is determined according to the response message that the session corresponding to the positioning parameter exists, updating the timestamp in the session record information to the current time.
  • an embodiment of the present invention also provides a session binding function BSF device, the BSF device stores a session record, the session record is created by a policy control function PCF device, and the BSF device includes:
  • a parameter sending unit configured to send the positioning parameter of the session record to the PCF device
  • a response receiving unit configured to receive a response message returned by the PCF device
  • the deletion control unit is configured to determine that the session corresponding to the positioning parameter does not exist on the PCF device according to the response message, and then delete the session record.
  • the BSF further includes:
  • the management confirmation unit is used to determine that the session record needs to be deleted and managed
  • the target confirmation unit is configured to confirm the PCF device according to the session record after the confirmation unit determines that the session record needs to be deleted and managed.
  • the response receiving unit is configured to receive a response message returned by the PCF device, and the response message carries a response message for indicating that the session corresponding to the positioning parameter is on the PCF device.
  • Non-existent error code
  • the deletion control unit is configured to determine, according to the error code, that the session corresponding to the positioning parameter does not exist on the PCF device.
  • the target confirmation unit is configured to read the address of the PCF device recorded in the session record from the session record;
  • the parameter sending unit is configured to send the positioning parameter of the session record to the address of the PCF device.
  • the management confirmation unit is configured to read the timestamp of the session record from the session record, and determine that the session record is stored in the BSF device according to the timestamp The duration of the session record; determining that the duration of the session record stored in the BSF device exceeds the validity period of the session record;
  • the parameter sending unit is configured to send the positioning parameter of the session record to the PCF device when the management confirmation unit determines that the duration of the session record stored in the BSF device exceeds the validity period of the session record.
  • the management confirmation unit is further configured to update the time stamp in the session record information if the deletion control unit determines that the session corresponding to the positioning parameter exists according to the response message Is the current time.
  • an embodiment of the present invention also provides a session binding function BSF device, including: a processor, a memory, and a transceiver; the processor, the memory, and the transceiver are connected in a communicative manner; A session record is stored in the memory, and the session record is created by a policy control function PCF device;
  • Program code is stored in the memory
  • the processor is configured to read the program code and cooperate with the transceiver to implement the function of the method of any one of claims 1 to 7.
  • an embodiment of the present invention also provides a communication system, including: a session binding function BSF device and a slightly control function PCF device, the BSF device stores a session record, the session record is created by the PCF device ,
  • the BSF device is the BSF device according to any one of the embodiments of the present invention;
  • the PCF device is configured to send a response message to the BSF device according to the positioning parameter sent by the BSF device, and the response message carries a message used to determine whether the session corresponding to the positioning parameter exists on the PCF device Information.
  • an embodiment of the present invention also provides a computer-readable storage medium, the storage medium stores program code, and the program code includes program instructions that, when executed by a processor, cause the The processor cooperates with the transceiver to realize the function of any one of the methods disclosed in the embodiments of the present invention.
  • the positioning parameters include: the binding identifier of the session record, the address of the user equipment using the session, the data network name DNN or the single network slice selection auxiliary information (single network slice selection) assistance information, S-NSSAI).
  • the BSF device may send the positioning parameters of one session record at a time, or may send the positioning parameters of the session records corresponding to multiple sessions managed by the PCF device at a time.
  • the embodiment of the present invention has the following advantages: the BSF device storing the session record sends the positioning parameters to the corresponding PCF device, and the session can be accurately determined when it is determined that there is no corresponding session on the PCF device.
  • the recorded information is junk data, so that junk data can be accurately identified and deleted.
  • the stability of the session can also be ensured.
  • Figure 1 is a schematic diagram of a network architecture according to an embodiment of the present invention.
  • Figure 2 is a schematic diagram of a network architecture according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a method according to an embodiment of the present invention.
  • Figure 5 is a schematic diagram of a network architecture according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the structure of a BSF device according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of the structure of a BSF device according to an embodiment of the present invention.
  • Fig. 8 is a schematic structural diagram of a communication system according to an embodiment of the present invention.
  • FIG. 1 and 2 are schematic diagrams of the network structure of a typical application scenario provided by an embodiment of the present invention.
  • the schematic diagram of the structure shown in FIG. 1 includes: PCF equipment, BSF equipment, NEF equipment, and AF equipment; Among them, there can be n PCF devices, and the specific number is not limited.
  • the structure diagram shown in Figure 2 also includes: Network Repository Function (NRF) equipment, Application Function (AF) equipment, Session Management Function (SMF) equipment, and unified data Management (Unified Data Management, UDM) equipment;
  • NRF Network Repository Function
  • AF Application Function
  • SMF Session Management Function
  • UDM Unified Data Management
  • SMF provides 5G session management functions
  • PCF provides 5G policy control functions
  • NEF provides network capability opening functions
  • AF is an application function
  • NRF provides service registration/service discovery functions
  • BSF devices provide session binding functions for voice and data services.
  • BSF can be deployed independently or in combination with PCF, SMF, NRF and other network elements. Regardless of the deployment form of the BSF equipment, as a functional entity, it helps NEF and AF find the PCF where the user is located under the multi-PCF network.
  • the PCF equipment calls the Nbsf registration management (Nbsf_management_register) service API provided by the BSF equipment to insert the session record of the user equipment into the database of the BSF equipment.
  • the session record includes the aforementioned user equipment address, data network name (DNN), the PCF equipment address where the user equipment is located, and the PCF equipment doubles as a 4G network policy and charging rules function (PCRF) equipment The host name or domain name and other information at the time.
  • the BSF device After the BSF device successfully inserts the session record into the BSF device, it generates a globally unique binding identifier (BindingId) of the session record, and sends it to the PCF in a response message.
  • BindingId globally unique binding identifier
  • the above Nbsf is the service interface name provided by the BSF defined by 3GPP;
  • the address of the user equipment includes: Internet protocol version 4 (IPv4) address, Internet protocol version 6 (Internet protocol version 6, IPv6) address and One or more of media access control (MAC) addresses;
  • PCF device addresses include: fully qualified domain name (FQDN), IPv4 address, IPv4 address + IP-Domain-Id and IPv6 address One or more of them.
  • the NEF device/AF device calls the Nbsf management discovery (Nbsf_management_discovery) service API provided by the BSF, queries the BSF device for the session record of the user device stored by the BSF device, and obtains the PCF address where the user device is located. Then, the service request of the QoS policy application can be initiated to the PCF device.
  • Nbsf_management_discovery Nbsf management discovery
  • the PCF device calls the Nbsf management deregister (Nbsf_management_deregister) service API provided by the BSF device to send the BindingId corresponding to the session record of the user equipment.
  • the session record corresponding to the BindingId is deleted.
  • (1) is the process of creating a session record
  • (2) is the process in which NEF equipment and AF equipment use the session record to initiate a QoS policy application
  • (3) is the process in which PCF deletes the session record under normal circumstances.
  • a data management method provided by an embodiment of the present invention is applied to store session records in a session binding function BSF device.
  • the above-mentioned session records are created by a policy control function PCF device.
  • the method flow includes:
  • the determination of the PCF device and the trigger condition for subsequent steps may be: the BSF device determines that it is necessary to delete and manage the above-mentioned session record, and then determines the PCF device based on the information contained in the above-mentioned session record.
  • triggering the execution of the above determination requires the deletion and management of the above-mentioned session records.
  • the conditions can be periodic or event-triggered; where the event-triggered condition can be used to store the session records in the above-mentioned BSF device.
  • the usage rate of the storage space reaches a certain threshold.
  • the specific trigger conditions are not uniquely limited in this embodiment.
  • the session record can be stored in the BSF device in the form of a session record library, and the management information of the session record can be in the form of a data table.
  • the session record validity period is set for all session records on the BSF device side, as shown in Table 1.
  • the record contains the session identifier and creation time; the time that each session record is stored in the BSF device can be calculated according to Table 1. If the validity period of the session record is exceeded, it can be determined that the session record needs to be deleted and managed.
  • the deletion management can be understood as Need to determine whether to delete the session record.
  • the BSF device sends the positioning parameters recorded by the session to the PCF device; after receiving the positioning parameters, the PCF device queries whether the session corresponding to the positioning parameters exists on the PCF device, generates a response message, and sends the response message to the BSF device .
  • the positioning parameters of a session record for example: the session ID of the session record; if there are multiple session records that exceed the validity period of the session record, you can Send the positioning parameters recorded by the session one by one, or send the positioning parameters recorded by all the sessions to the PCF in the form of a table.
  • the above positioning parameters may be carried in the session query request message.
  • the above response message is a response to the session query request message, and may be called a session query response message.
  • the response message may indicate that no session corresponding to the positioning parameter is found, or the response message may carry an error code indicating that the session of the positioning parameter does not exist on the PCF device. If the session corresponding to the above-mentioned positioning parameter is found, the response message may carry information about the session, or information indicating that the session corresponding to the above-mentioned positioning parameter is found.
  • the BSF device receives the response message returned by the PCF device, and determines that the session corresponding to the positioning parameter does not exist on the PCF device according to the response message, and then deletes the session record.
  • the BSF device storing the session record sends the positioning parameters to the corresponding PCF device.
  • the session record information can be accurately determined as junk data, so as to accurately identify and delete the junk data.
  • the stability of the session can also be guaranteed.
  • this embodiment provides a process for confirming whether it is necessary to delete session records one by one, which is specifically as follows:
  • the BSF device periodically scans the session record library of the BSF device, and determines one by one whether the duration of the session records stored in the BSF device exceeds the session record validity period preset by the system, and enters 402 when one session record is found.
  • the BSF device sends a session query request message to the PCF device corresponding to the PCF device address information according to the PCF device address information saved in the found session record.
  • the aforementioned PCF device address information includes: the FQDN or IP address + port of the PCF device.
  • the above-mentioned session query request message carries the positioning parameter used to uniquely identify the above-mentioned session record, or the positioning parameter that uniquely identifies the corresponding session of the above-mentioned session record;
  • the positioning parameter can be BindingId, or user equipment address, DNN and S-NNSAI One or more of; wherein, the user equipment address can be one or more of an IPv4 address, an IPv6 address, and a MAC address.
  • the BSF device sends a session query request message to the PCF device, which can be sent through the Npcf interface, which is the name of the service interface defined by the 3GPP for the PCF to provide external services.
  • a new service API is added to the Npcf interface for the BSF to call to query whether the specified session record exists on the PCF device, that is, whether it is valid.
  • the main parameters include:
  • a parameter that uniquely identifies a single session such as: BindingId; or, one or more of the user equipment address, DNN and S-NNSAI; where the user equipment address can be one of IPv4 address, IPv6 address and MAC address Or multiple.
  • Parameter list each parameter or parameter combination in the parameter list uniquely identifies a certain session. Refer to the description in 1 for the parameters of a single session.
  • the error code indicates the result of the query, and it needs to be able to distinguish the presence or absence of the session on the above-mentioned PCF device.
  • the specific error code value can be set arbitrarily.
  • the PCF needs to give an error code for the query result of each session, and the error code needs to be able to distinguish the presence or absence of the session on the above-mentioned PCF device. You can refer to the description of Table 2 and Table 3 in the subsequent embodiments.
  • the PCF device queries the session database of the PCF device according to the positioning parameters carried in the session query request message, generates a session query response message according to the query result, and returns the session query response message to the BSF device.
  • the response message adopts an agreed error code to indicate that the session record corresponding to the positioning parameter does not exist.
  • the above-mentioned error code may be predetermined by the communication system, or may be any error code mutually recognized by the PCF device and the BSF device.
  • the BSF device receives the session query response message returned by the PCF device. If the query result in the query response message is that there is a session corresponding to the above-mentioned positioning parameter, it will continue to scan the next session record. If the query result in the above-mentioned query response message is Because there is no session corresponding to the above positioning parameter, delete the session record corresponding to the positioning parameter, and then continue to scan the next session record.
  • the session record that exceeds the preset session record validity period of the system no longer exists in the PCF device, and the session record corresponding to the positioning parameter is deleted, and then the scanning is continued.
  • the next session record otherwise, it is determined that the above-mentioned session record that exceeds the preset session record validity period of the system is stored in the PCF device, and the session record cannot be deleted, and then the next session record is scanned.
  • the process of creating a session record may be: when the user equipment goes online, the SMF device invokes the service creation QoS policy of the PCF device, and there is a session corresponding to the user equipment on the PCF device, and the PCF device invokes the BSF device The service creates a session record of the session.
  • the SMF device invokes the service of the PCF device to execute the delete QoS policy.
  • the PCF device deletes the session corresponding to the user device stored locally, and also invokes the service of the aforementioned BSF device to delete the session record corresponding to the session .
  • the creation and deletion of the session record on the BSF device corresponds to the session of the user device on the PCF device in a one-to-one correspondence. Therefore, according to the query result of the session queried by the PCF device, that is, whether the queried session corresponding to the positioning parameter exists, it is judged whether the session record on the BSF device is valid, and the correctness can be ensured.
  • the BSF device actively performs garbage data cleaning, which avoids the problem that garbage data cannot be deleted in time under various abnormal scenarios caused by dependence on other network elements.
  • this embodiment provides a process for confirming whether it is necessary to delete session records one by one, which is specifically as follows:
  • the BSF device periodically scans the session record library of the BSF device to determine whether there is any session record stored in the BSF device for longer than the session record validity period preset by the system among all the session records corresponding to the same PCF device. If so, Go to 502; if not, determine whether there is a session record stored in the BSF device for a duration that exceeds the session record validity period preset by the system among all the session records corresponding to the next PCF device.
  • the BSF device sends a session query request message to the PCF device corresponding to the PCF device address information according to the PCF device address information saved in the found session record.
  • the aforementioned PCF device address information includes: the FQDN or IP address + port of the PCF device.
  • the session query request message includes a positioning parameter list, and each positioning parameter in the positioning parameter list is used to uniquely identify a session record, or uniquely identify a session corresponding to a session record;
  • the positioning parameter can be a BindingId or a user equipment One or more of address, DNN and S-NNSAI; wherein, the user equipment address may be one or more of IPv4 address, IPv6 address and MAC address.
  • Table 2 is an example of positioning parameters:
  • BindingId 1 BindingId 2 ... BindingId n
  • the PCF device queries the session database of the PCF device according to the positioning parameter list carried in the session query request message, generates a query response message according to the query result, and returns a session query response message to the BSF device.
  • the response message adopts an agreed error code to indicate that the session record corresponding to the positioning parameter does not exist.
  • Each positioning parameter can correspond to an agreed error code or used to indicate the existence of a session.
  • the above-mentioned error code may be predetermined by the communication system, or may be any error code mutually recognized by the PCF device and the BSF device. As shown in Table 3, it is an example of the query result corresponding to Table 2, and the details are as follows:
  • BindingId 1 Conventional error code
  • BindingId 2 Non-conventional error code ... ...
  • BindingId n Conventional error code
  • the BSF device receives the session query response message returned by the PCF device, deletes the session record corresponding to the item in the session query response message indicating that the session does not exist on the PCF device, and then determines all session records corresponding to the next PCF device , Whether there is a session record stored in the BSF device for longer than the session record validity period preset by the system.
  • the main difference between this embodiment and the previous embodiment is that the previous embodiment performs the validity judgment on a session record by session record, and the present embodiment performs judgment on all PCF messages one by one. Relatively speaking, fewer messages are sent and received.
  • the embodiment of the present invention also provides a session binding function BSF device.
  • the above-mentioned BSF device stores a session record
  • the above-mentioned session record is created by a policy control function PCF device
  • the above-mentioned BSF device includes:
  • the parameter sending unit 603 is configured to send the positioning parameters of the session record to the PCF device;
  • the response receiving unit 604 is configured to receive the response message returned by the above-mentioned PCF device
  • the deletion control unit 605 is configured to determine according to the response message that the session corresponding to the positioning parameter does not exist on the PCF device, and then delete the session record.
  • the above-mentioned BSF device further includes:
  • the management confirmation unit 601 is configured to determine that it is necessary to delete and manage the above-mentioned session records
  • the target confirming unit 602 is configured to confirm the PCF device according to the session record after the confirmation unit determines that it is necessary to delete and manage the session record.
  • the response receiving unit 604 is configured to receive a response message returned by the PCF device, and the response message carries an error indicating that the session corresponding to the positioning parameter does not exist on the PCF device. code;
  • the deletion control unit 605 is configured to determine, according to the error code, that the session corresponding to the positioning parameter does not exist on the PCF device.
  • the target confirmation unit 602 is configured to read the address of the PCF device recorded in the session record from the session record;
  • the parameter sending unit 603 is configured to send the positioning parameter of the session record to the address of the PCF device.
  • the management confirmation unit 601 is configured to read the timestamp of the session record from the session record, and determine the length of time the session record is stored in the BSF device according to the timestamp; The duration of the session record stored in the aforementioned BSF device exceeds the validity period of the aforementioned session record;
  • the parameter sending unit 603 is configured to determine in the management confirmation unit 601 that the duration of the session record stored in the BSF device exceeds the validity period of the session record, and send the positioning parameter of the session record to the PCF device.
  • the management confirmation unit 601 is further configured to update the time stamp in the session record information to the current time if the deletion control unit 605 determines that the session corresponding to the positioning parameter exists according to the response message. .
  • the above-mentioned positioning parameters include: the binding identifier of the above-mentioned session record, the address of the user equipment using the above-mentioned session, and the data network name DNN or S-NSSAI.
  • an embodiment of the present invention also provides a BSF device.
  • the BSF device 700 may have relatively large differences due to different configurations or performance, and may include one or more central processing units ( Central processing units, CPU) 722 (for example, one or more processors) and memory 732, and one or more storage media 730 (for example, one or more storage devices) storing application programs 742 or data 744.
  • the memory 732 and the storage medium 730 may be short-term storage or persistent storage.
  • the program stored in the storage medium 730 may include one or more modules (not shown in the figure), and each module may include a series of command operations on the BSF device.
  • the central processing unit 722 may be configured to communicate with the storage medium 730, and execute a series of instruction operations in the storage medium 730 on the BSF device 700.
  • the BSF device 700 may also include one or more power supplies 726, one or more wired or wireless network interfaces 750, one or more input and output interfaces 758, and/or one or more operating systems 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • operating systems 741 such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • the steps performed by the BSF device in the foregoing embodiment may be based on the BSF device structure shown in FIG. 7. More specifically, as shown in Figure 3, all the contents of 301-303 except 302 involved in the execution of the query, generation of response messages, and response messages sent by the PCF.
  • the contents of 401, 402, and 404 in Figure 4 are shown in Figure 5.
  • the contents of 501, 502, and 503 are all executed by the BSF device based on the structure shown in FIG. 7. More specifically, in FIG. 6, the management confirmation unit 601, the target confirmation unit 602, and the deletion control unit 605 are executed by the processor 722, and the parameter sending unit 603 and the response receiving unit 604 are implemented by the wired or wireless network interface 750 or by the input and output interface. 958 execution.
  • the embodiment of the present invention also provides another BSF device, including: a processor, a memory, and a transceiver; the processor, the memory, and the transceiver are connected in a communicative manner; the memory stores a session record, the session record Created by a PCF device with a policy control function; stored in the above-mentioned memory with program code; the above-mentioned processor is used to read the above-mentioned program code and cooperate with the above-mentioned transceiver to implement the query executed by the PCF, except for 302 in 301-303 shown in FIG. 3, Generate the response message and send all the content except the response message, the content of 401, 402, and 404 in Figure 4, and the content of 501, 502, and 503 in Figure 5.
  • a processor a memory, and a transceiver
  • the processor, the memory, and the transceiver are connected in a communicative manner
  • the memory stores a session record, the session record Created by a PCF
  • An embodiment of the present invention also provides a communication system, as shown in FIG. 8, including: a BSF device 801 and a PCF device 802, where the above-mentioned BSF device is any one of the BSF devices provided in the foregoing embodiments. You can refer to the systems shown in Figures 1 and 2 together.
  • the embodiment of the present invention also provides a computer-readable storage medium, the storage medium stores program code, the program code includes program instructions, and when the program instructions are executed by a processor, the processor and the transceiver cooperate to realize the present invention.
  • the storage medium stores program code
  • the program code includes program instructions
  • the processor and the transceiver cooperate to realize the present invention.
  • the embodiment of the present invention also provides a computer program product.
  • the above-mentioned computer program product includes program instructions.
  • the processor and the transceiver cooperate to implement any item provided in the embodiments of the present invention.
  • the function of the method please refer to the method flow in the previous article for details, which will not be detailed here.
  • the process can be completed by a computer program instructing relevant hardware.
  • the program can be stored in a computer readable storage medium. , May include the processes of the foregoing method embodiments.
  • the aforementioned storage media include: ROM or random storage RAM, magnetic disks or optical disks and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种数据管理方法、相关产品及通信系统;其中,会话绑定功能BSF设备中存储会话记录,会话记录由策略控制功能PCF设备创建;方法包括:BSF设备向PCF设备发送会话记录的定位参数,BSF设备接收PCF设备返回的响应消息,依据响应消息确定定位参数对应的会话在PCF设备上不存在,则删除会话记录。在保证BSF设备的存储容量的前提下,还能保证会话的稳定性。

Description

一种数据管理方法,相关产品及通信系统
本申请要求于2019年9月12日提交中国国家知识产权局、申请号为201910866770.7、发明名称为“一种数据管理方法,相关产品及通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,特别涉及一种数据管理方法,相关产品及通信系统。
背景技术
第三代伙伴关系计划(3rd generation partner project,3GPP)定义了会话绑定功能(binding support function,BSF)设备;该BSF设备提供了5G核心网(5G core,5GC)的网络会话绑定功能,帮助网络开放功能(network exposure function,NEF)设备或应用功能(application function,AF)设备在多策略控制功能(policy control function,PCF)设备的组网下,根据用户设备的地址选择用户设备所在的PCF设备,从而进行服务质量(quality of service,QoS)策略申请。
在BSF设备上包含会话记录,该会话记录是在支持5G的用户设备上线后,由PCF设备调用BSF设备的服务应用程序接口(application programming interface,API)进行会话记录的注册和注销,即由PCF触发在BSF上创建或删除会话记录。该会话记录是与会话相关的数据,也可以称为会话记录数据、会话记录信息,或者会话绑定数据等。
在正常的会话流程下,会话结束后会话记录信息会被删除;例如:PCF设备调用BSF设备的API,向该BSF设备发送会话记录的标识,用于指示BSF设备将该会话记录删除。但是,在实际应用中,各种消息都有可能因为承载网问题或者其他原因导致该PCF设备发往BSF设备用于删除会话记录的消息丢失,或者其他问题导致会话记录没有被删除而保存在BSF设备中。这些需要删除的会话记录被保存在BSF设备中,属于垃圾数据,垃圾数据积累会导致在BSF设备无法创建新的会话记录,造成新业务无法使用的问题。
为了节省BSF的容量,解决新业务无法使用的问题,需要对这些垃圾数据进行老化,即:删除。目前常用的一种老化方式是根据时间戳进行老化,假设按照一个月的时间点老化,认为超过一个月的会话记录信息就是垃圾数据。
采用时间戳的方式进行数据老化存在错误删除有效会话记录的问题,会导致用户无法上网或者无法进行语音呼叫。
发明内容
本发明实施例提供了一种数据管理方法,相关产品及通信系统,用于准确识别并删除垃圾数据,在保证BSF设备的存储容量的前提下能保证会话的稳定性。
第一方面,本发明实施例提供了一种数据管理方法,会话绑定功能BSF设备中存储会话记录,所述会话记录由策略控制功能PCF设备创建,包括:所述BSF设备向所述PCF设备发送所述会话记录的定位参数;所述BSF设备接收所述PCF设备返回的响应消息,依据 所述响应消息确定所述定位参数对应的会话在所述PCF上不存在,则删除所述会话记录。
在本实施例中,触发删除管理的条件可以是周期性执行,也可以是事件触发,例如BSF设备中用于存储会话记录的存储空间占用率过高;上述定位参数可以是能够唯一标识会话记录或者会话的任意参数;由于网络中通常存在多个PCF设备,不同的PCF设备管理不同的会话,因此在会话记录中包含有该会话记录对应到哪一个PCF的信息,例如:PCF的地址,即PCF的互联网协议(internet protocol,IP)地址和端口,或者完全限定域名(fully aualified domain name,FQDN)。在响应消息中可以包含表示会话是否存在的任何信息,例如:BSF设备和PCF设备都能知道含义的错误码,或者错误参数值等。
另外,BSF设备可以逐个定位参数发送,也可以一次发送对应同一个PCF的多个定位参数。如果一次发送对应同一个PCF的多个定位参数,那么在响应消息中,是否存在与定位参数对应的会话的结果与该定位参数一一对应。
在一个可选的实施方式中,所述方法还包括:所述BSF设备确定需要对所述会话记录进行删除管理,则依据所述会话记录确认PCF设备。随后,BSF设备可以向所述PCF设备发送所述会话记录的定位参数。
本实施例提供了触发BSF设备发送定位参数的条件,其中需要对会话记录进行删除管理的具体内容可以是:会话记录在设备中存储的时间超过了阈值,或者,到达了发送定位参数的时间周期。具体如何设定对会话记录进行删除管理的条件,可以根据实际需要进行设定,本实施例不作唯一性限定。
在一个可选的实现方式中,所述BSF设备接收所述PCF设备返回的响应消息,依据所述响应消息确定所述定位参数对应的会话在所述PCF设备上不存在,包括:所述BSF设备接收所述PCF设备返回的响应消息,在所述响应消息中携带用于指示所述定位参数对应的会话在所述PCF设备上不存在的错误码;依据所述错误码确定所述定位参数对应的会话在所述PCF设备上不存在。
本实施例使用错误码的方式,可以使用较少的信息传递上述定位参数对应的会话在PCF设备中是否存在的结果。
在一个可选的实现方式中,所述依据所述会话记录确认PCF设备包括:从所述会话记录中读取所述会话记录中记录的所述PCF设备的地址;
所述BSF设备向所述PCF设备发送所述会话记录的定位参数,包括:所述BSF设备向所述PCF设备的地址发送所述会话记录的定位参数。
本实施例提供了以PCF设备的地址确定PCF设备的手段,由于PCF设备的地址在会话记录中存在,采用该手段可以减少数据处理量,较快发送定位参数。
在一个可选的实现方式中,所述BSF设备确定需要对所述会话记录进行删除管理包括:所述BSF设备从所述会话记录中读取所述会话记录的时间戳,依据所述时间戳确定所述会话记录在所述BSF设备中存储的时长;确定所述会话记录在所述BSF设备中存储的时长超过所述会话记录有效期,则执行所述向所述PCF设备发送所述会话记录的定位参数。
本实施例提供了以时间戳结合会话记录有效期来确定是否要执行删除管理的手段,可以方便地精确到单个的会话记录的管理。
在一个可选的实现方式中,所述方法还包括:若依据所述响应消息确定所述定位参数 对应的会话存在,则更新所述会话记录信息中的时间戳为当前时间。
第二方面,本发明实施例还提供了一种会话绑定功能BSF设备,所述BSF设备中存储会话记录,所述会话记录由策略控制功能PCF设备创建,所述BSF设备包括:
参数发送单元,用于向所述PCF设备发送所述会话记录的定位参数;
响应接收单元,用于接收所述PCF设备返回的响应消息;
删除控制单元,用于依据所述响应消息确定所述定位参数对应的会话在所述PCF设备上不存在,则删除所述会话记录。
在一个可选的实施方式中,所述BSF还包括:
管理确认单元,用于确定需要对所述会话记录进行删除管理;
目标确认单元,用于在所述确认单元确定需要对所述会话记录进行删除管理后,则依据所述会话记录确认PCF设备。
在一个可选的实现方式中,所述响应接收单元,用于接收所述PCF设备返回的响应消息,在所述响应消息中携带用于指示所述定位参数对应的会话在所述PCF设备上不存在的错误码;
所述删除控制单元,用于依据所述错误码确定所述定位参数对应的会话在所述PCF设备上不存在。
在一个可选的实现方式中,所述目标确认单元,用于从所述会话记录中读取所述会话记录中记录的所述PCF设备的地址;
所述参数发送单元,用于向所述PCF设备的地址发送所述会话记录的定位参数。
在一个可选的实现方式中,所述管理确认单元,用于从所述会话记录中读取所述会话记录的时间戳,依据所述时间戳确定所述会话记录在所述BSF设备中存储的时长;确定所述会话记录在所述BSF设备中存储的时长超过所述会话记录有效期;
所述参数发送单元,用于在所述管理确认单元确定所述会话记录在所述BSF设备中存储的时长超过所述会话记录有效期,向所述PCF设备发送所述会话记录的定位参数。
在一个可选的实现方式中,所述管理确认单元,还用于若所述删除控制单元依据所述响应消息确定所述定位参数对应的会话存在,则更新所述会话记录信息中的时间戳为当前时间。
第三方面,本发明实施例还提供了一种会话绑定功能BSF设备,包括:处理器、存储器和收发器;所述述处理器、所述存储器和所述收发器以可通信方式连接;所述存储器中存储会话记录,所述会话记录由策略控制功能PCF设备创建;
在所述存储器中存储有程序代码;
所述处理器用于读取所述程序代码与所述收发器配合实现权利要求1至7任意一项的方法的功能。
第四方面,本发明实施例还提供了一种通信系统,包括:会话绑定功能BSF设备和略控制功能PCF设备,所述BSF设备中存储会话记录,所述会话记录由所述PCF设备创建,所述BSF设备为本发明实施例提供的任意一项所述的BSF设备;
所述PCF设备,用于根据所述BSF设备发送的定位参数向所述BSF设备发送响应消息,在所述响应消息中携带用于确定所述定位参数对应的会话在所述PCF设备上是否存在的信 息。
第五方面,本发明实施例还提供了一种计算机可读存储介质,所述存储介质中存储有程序代码,所述程序代码包括程序指令,所述程序指令当被处理器执行时使所述处理器与收发器配合实现本发明实施例公开的任意一项方法的功能。
在以上所有方面提供的技术方案中,所述定位参数包括:所述会话记录的绑定标识、使用所述会话的用户设备地址、数据网络名称DNN或单一网络切片选择辅助信息(single network slice selection assistance information,S-NSSAI)。
在以上所有方面提供的技术方案中,BSF设备可以1次发送1个会话记录的定位参数,也可以1次发送1个PCF设备管理的多个会话对应的会话记录的定位参数。
从以上技术方案可以看出,本发明实施例具有以下优点:由存储会话记录的BSF设备发送定位参数给相应的PCF设备,在确定PCF设备上不存在相应会话的情况下,可以准确确定该会话记录信息为垃圾数据,从而准确的识别并删除垃圾数据,在保证BSF设备的存储容量的前提下,还能保证会话的稳定性。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍。
图1为本发明实施例网络架构示意图;
图2为本发明实施例网络架构示意图;
图3为本发明实施例方法流程示意图;
图4为本发明实施例方法流程示意图;
图5为本发明实施例网络架构示意图;
图6为本发明实施例BSF设备结构示意图;
图7为本发明实施例BSF设备结构示意图;
图8为本发明实施例通信系统结构示意图。
具体实施方式
下面结合本发明实施例中的附图对本发明实施例进行描述。
如图1和图2所示,为本发明实施例提供的典型应用场景的网络结构示意图,其中,在图1所示的结构示意图中,包括:PCF设备、BSF设备以及NEF设备、AF设备;其中PCF设备可以有n个,具体数量不作限制。
在图2所示的结构图中,还包含了:网络存储功能(Network Repository Function,NRF)设备、应用功能(Application Function,AF)设备、会话管理功能(Session Management Function,SMF)设备以及统一数据管理(Unified Data Management,UDM)设备;
其中,SMF提供5G会话管理功能,PCF提供5G策略控制功能,NEF提供网络能力开放功能,AF是应用功能,NRF提供服务注册/服务发现功能;BSF设备提供语音和数据业务的会话绑定功能。
根据3GPP TS 23.513的定义,BSF可以独立部署也可以和PCF、SMF、NRF等网元合设。 无论BSF设备的部署形态如何,它作为一个功能实体,它帮助NEF和AF在多PCF组网下找到用户所在PCF。
以下为对应图1和图2所示的系统结构,由PCF设备控制创建和删除会话记录的具体流入如下:
⑴、用户设备上线后,PCF设备调用BSF设备所提供的Nbsf注册管理(Nbsf_management_register)服务API,将用户设备的会话记录插入到BSF设备的数据库。该会话记录包括上述用户设备地址、数据网络名称(data network name,DNN)、用户设备所在的PCF设备地址、该PCF设备兼作4G网络策略与计费规则功能(policy and charging rules function,PCRF)设备时的主机名或域名等信息。BSF设备向BSF设备插入会话记录成功后,生成该会话记录的全局唯一的绑定标识(BindingId),在响应消息中发送给PCF。
其中,上述Nbsf是3GPP定义的BSF对外提供的服务接口名称;用户设备的地址包括:网际协议版本4(internet protocol version 4,IPv4)地址、网际协议版本6(internet protocol version 6,IPv6)地址和媒体访问控制(media access control,MAC)地址中的一种或者多种;PCF设备地址包括:完全限定域名(fully qualified domain name,FQDN)、IPv4地址、IPv4地址+IP-Domain-Id和IPv6地址中的一种或者多种。
⑵、NEF设备/AF设备调用BSF提供的Nbsf管理发现(Nbsf_management_discovery)服务API,向BSF设备查询BSF设备存储的用户设备的会话记录,得到用户设备所在的PCF地址。然后可以向该PCF设备发起QoS策略申请的服务请求。
⑶、用户设备下线,则PCF设备调用BSF设备提供的Nbsf管理注销(Nbsf_management_deregister)服务API,发送该用户设备的会话记录对应的BindingId,BSF设备在收到该BindingId后将BSF上保存的与该BindingId对应的会话记录删除。
在以上流程中,⑴是会话记录的创建过程,⑵是NEF设备和AF设备使用该会话记录发起QoS策略申请的过程,⑶是PCF在正常情况下删除会话记录的过程。
如图3所示,为本发明实施例提供的一种数据管理方法,应用于会话绑定功能BSF设备中存储会话记录,上述会话记录由策略控制功能PCF设备创建,方法流程包括:
301:确定PCF设备;
在本实施例中,确定PCF设备以及后续步骤的触发条件可以是:BSF设备确定需要对上述会话记录进行删除管理,则依据上述会话记录中包含的信息确定PCF设备。
在本步骤中,触发执行上述确定需要对上述会话记录进行删除管理的条件,可以是周期性的,也可以是事件触发的;其中,事件触发的情况可以是上述BSF设备中用于存储会话记录的存储空间的使用率达到某个阈值。具体的触发条件,本实施例不作唯一性限定。
会话记录在BSF设备中可以采用会话记录库的形式存储,会话记录的管理信息可以采用数据表的形式,在BSF设备一侧为所有的会话记录都设置会话记录有效期,如表1所示,会话记录包含会话标识和创建时间;可以根据该表1计算各会话记录在BSF设备存储的时间,如果超过了该会话记录有效期,则可以确定需要对该会话记录进行删除管理,该删除管理可以理解为需要确定是否删除该会话记录。
表1
会话标识 创建时间
会话记录1 T1
会话记录2 T2
会话记录n Tn
302:上述BSF设备向上述PCF设备发送上述会话记录的定位参数;PCF设备收到定位参数后查询该定位参数对应的会话在上述PCF设备上是否存在,生成响应消息,向BSF设备发送该响应消息。
根据前文说明,如果仅有一个会话记录超过了会话记录的有效期,则可以发送一个会话记录的定位参数,例如:该会话记录的会话标识;如果有多个会话记录超过了会话记录的有效期,可以逐个发送会话记录的定位参数,或者将所有会话记录的定位参数以表格形式发送给PCF。
上述定位参数可以携带在会话查询请求消息中。上述响应消息是对会话查询请求消息的响应,可以称为会话查询响应消息。该响应消息中可以指示没有找到对应上述定位参数的会话,或者在响应消息中携带用于表示上述定位参数的会话在上述PCF设备上不存在的错误码。如果找到了上述定位参数对应的会话,则可以在响应消息中携带会话的相关信息,或者指示找到了对应上述定位参数的会话的信息。
303:上述BSF设备接收上述PCF设备返回的响应消息,依据上述响应消息确定上述定位参数对应的会话在上述PCF设备上不存在,则删除上述会话记录。
本实施由存储会话记录的BSF设备发送定位参数给相应的PCF设备,在确定不存在相应会话的情况下,可以准确确定该会话记录信息为垃圾数据,从而准确的识别并删除垃圾数据,在保证BSF设备的存储容量的前提下,还能保证会话的稳定性。
如图4所示,本实施例提供了逐条确认是否需要删除会话记录的流程,具体如下:
401:BSF设备周期性扫描该BSF设备的会话记录库,逐个判断会话记录在该BSF设备存储的时长是否超过系统预置的会话记录有效期,找到1条会话记录则进入402。
402:BSF设备根据找到的会话记录中保存的PCF设备地址信息,向该PCF设备地址信息对应的PCF设备发出会话查询请求消息。
上述PCF设备地址信息包括:PCF设备的FQDN或者IP地址+port。
在上述会话查询请求消息中携带用于唯一标识上述会话记录的定位参数,或者唯一标识上述会话记录对应会话的定位参数;该定位参数可以是BindingId,也可以是用户设备地址、DNN和S-NNSAI中的一个或多个;其中,用户设备地址可以是IPv4地址、IPv6地址和MAC地址中的一种或者多种。
在本实施例中,BSF设备向PCF设备发送会话查询请求消息,可以通过Npcf接口发送,Npcf接口,是3GPP定义的PCF对外提供服务的服务接口名称。本实施例在Npcf接口新增一种服务API,供BSF调用查询指定的会话记录在PCF设备上是否存在,即是否有效。主要参数包括:
输入参数:
1、唯一标识单个会话的参数,例如:BindingId;或者,用户设备地址、DNN和S-NNSAI中的一个或多个;其中,用户设备地址可以是IPv4地址、IPv6地址和MAC地址中的一种或者多种。
2、参数列表,该参数列表中的每个参数或参数组合都唯一标识某个会话。单个会话的参数参考1的说明。
输出参数:
1、针对查询单个会话的会话查询请求消息,错误码指示查询的结果,需要能够区分出会话在上述PCF设备上存在或者不存在两种情况,具体错误码值可以任意设置。
2、针对查询多个会话的话查询请求消息,PCF需针对每个会话的查询结果给出错误码,错误码需要能够区分出会话在上述PCF设备上存在或者不存在两种情况。可以参考后续实施例中表2和表3的说明。
403:PCF设备根据上述会话查询请求消息中携带的定位参数,查询PCF设备的会话数据库,根据查询结果生成会话查询响应消息,向上述BSF设备返回会话查询响应消息。
更具体地,如果查询结果为与定位参数对应的会话在上述PCF设备上不存在,则响应消息中采用携带约定的错误码指示与上述定位参数对应的会话记录不存在。
上述错误码可以是通信系统所预定的,也可以是PCF设备和BSF设备相互认可的任意错误码。
404:BSF设备接收PCF设备返回的会话查询响应消息,如果该查询响应消息中的查询结果为存在与上述定位参数对应的会话,则继续扫描下一个会话记录,如果上述查询响应消息中的查询结果为不存在与上述定位参数对应的会话,则删掉该定位参数对应的会话记录,然后继续扫描下一个会话记录。
更具体地,在查询响应消息中获得上述错误码,则确定上述超过系统预置的会话记录有效期的会话记录在PCF设备中已经不存在,则删掉该定位参数对应的会话记录,然后继续扫描下一个会话记录;否则,确定上述超过系统预置的会话记录有效期的会话记录在PCF设备中,不可以删除该会话记录,然后继续扫描下一个会话记录。
在上述响应消息中可能有除了上述错误码之外的用于表示其他含义的错误码,对此本实施例不作限制。
本实施例,会话记录的创建流程可以是:当用户设备上线时,SMF设备调用PCF设备的服务的创建QoS策略,在该PCF设备则存在该用户设备对应的一个会话,该PCF设备调用BSF设备的服务创建该会话的会话记录。当上述用户设备下线时,SMF设备调用PCF设备的服务执行删除QoS策略,该PCF设备在删除本地保存的该用户设备对应的会话,还调用上述BSF设备的服务来删除该会话对应的会话记录。因此,BSF设备上的会话记录的创建和删除,与PCF设备上的用户设备的会话是一一对应的。因此,根据PCF设备查询到的会话的查询结果,即:查询到的是否存在与定位参数对应的会话来判断BSF设备上的会话记录是否有效,可以确保正确性。
本实施例,由BSF设备主动执行垃圾数据清理,避免了依赖于其他网元导致的各种异常场景下无法及时删除垃圾数据的问题。
如图5所示,本实施例提供了逐条确认是否需要删除会话记录的流程,具体如下:
501:BSF设备周期性扫描该BSF设备的会话记录库,判断对应同一个PCF设备的全部会话记录中,是否有会话记录在该BSF设备存储的时长超过系统预置的会话记录有效期,如果有,则进入502;如果没有,则判断对应下一个PCF设备的全部会话记录中,是否有会话记录在该BSF设备存储的时长超过系统预置的会话记录有效期。
502:BSF设备根据找到的会话记录中保存的PCF设备地址信息,向该PCF设备地址信息对应的PCF设备发出会话查询请求消息。
上述PCF设备地址信息包括:PCF设备的FQDN或者IP地址+port。
在上述会话查询请求消息中包含定位参数列表,上述定位参数列表的每一个定位参数用于唯一标识一个会话记录,或者唯一标识一个会话记录对应会话;该定位参数可以是BindingId,也可以是用户设备地址、DNN和S-NNSAI中的一个或多个;其中,用户设备地址可以是IPv4地址、IPv6地址和MAC地址中的一种或者多种。如表2所示,是定位参数的一个示例:
表2
会话标识
BindingId 1
BindingId 2
BindingId n
503:PCF设备根据上述会话查询请求消息中携带的定位参数列表,查询PCF设备的会话数据库,根据查询结果生成查询响应消息,向上述BSF设备返回会话查询响应消息。
更具体地,如果查询结果为与定位参数对应的会话在上述PCF设备上不存在,则响应消息中采用携带约定的错误码指示与上述定位参数对应的会话记录不存在。每一个定位参数可以对应一个约定的错误码,或者用于表示会话存在的信息。
上述错误码可以是通信系统所预定的,也可以是PCF设备和BSF设备相互认可的任意错误码。如表3所示,是与表2对应的查询结果的一个示例,具体如下:
表3
会话标识 查询结果
BindingId 1 约定的错误码
BindingId 2 非约定的错误码
BindingId n 约定的错误码
根据上述表3,可以确定BindingId 2对应的会话在PCF设备中仍然存在,BindingId 1和BindingId n对应的会话在PCF设备中已经不存在。
504:BSF设备接收上述PCF设备返回的会话查询响应消息,将上述会话查询响应消息中指示会话在上述PCF设备上不存在的项对应的会话记录删除,然后判断对应下一个PCF设备的全部会话记录中,是否有会话记录在该BSF设备存储的时长超过系统预置的会话记录有效期。
本实施例与前一实施例主要区别是,前一实施例逐个会话记录进行有效性判断,本实施例逐个PCF的全部有消息进行判断。相对而言,收发的消息数量更少。
本发明实施例还提供了一种会话绑定功能BSF设备,如图6所示,上述BSF设备中存储会话记录,上述会话记录由策略控制功能PCF设备创建,上述BSF设备包括:
参数发送单元603,用于向上述PCF设备发送上述会话记录的定位参数;
响应接收单元604,用于接收上述PCF设备返回的响应消息;
删除控制单元605,用于依据上述响应消息确定上述定位参数对应的会话在上述PCF设备上不存在,则删除上述会话记录。
在一个可选的实现方式中,上述BSF设备还包括:
管理确认单元601,用于确定需要对上述会话记录进行删除管理;
目标确认单元602,用于在上述确认单元确定需要对上述会话记录进行删除管理后,则依据上述会话记录确认PCF设备。
在一个可选的实现方式中,上述响应接收单元604,用于接收上述PCF设备返回的响应消息,在上述响应消息中携带用于指示上述定位参数对应的会话在上述PCF设备上不存在的错误码;
上述删除控制单元605,用于依据上述错误码确定上述定位参数对应的会话在上述PCF设备上不存在。
在一个可选的实现方式中,上述目标确认单元602,用于从上述会话记录中读取上述会话记录中记录的上述PCF设备的地址;
上述参数发送单元603,用于向上述PCF设备的地址发送上述会话记录的定位参数。
在一个可选的实现方式中,上述管理确认单元601,用于从上述会话记录中读取上述会话记录的时间戳,依据上述时间戳确定上述会话记录在上述BSF设备中存储的时长;确定上述会话记录在上述BSF设备中存储的时长超过上述会话记录有效期;
参数发送单元603,用于在上述管理确认单元601确定上述会话记录在上述BSF设备中存储的时长超过上述会话记录有效期,向上述PCF设备发送上述会话记录的定位参数。
在一个可选的实现方式中,上述管理确认单元601,还用于若上述删除控制单元605依据上述响应消息确定上述定位参数对应的会话存在,则更新上述会话记录信息中的时间戳为当前时间。
在一个可选的实现方式中,上述定位参数包括:上述会话记录的绑定标识、使用上述会话的用户设备地址、数据网络名称DNN或S-NSSAI。
如图7所示,本发明实施例还提供了一种BSF设备如图7所示,该BSF设备700可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)722(例如,一个或一个以上处理器)和存储器732,一个或一个 以上存储应用程序742或数据744的存储介质730(例如一个或一个以上的存储设备)。其中,存储器732和存储介质730可以是短暂存储或持久存储。存储在存储介质730的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对BSF设备中的一系列指令操作。更进一步地,中央处理器722可以设置为与存储介质730通信,在BSF设备700上执行存储介质730中的一系列指令操作。
BSF设备700还可以包括一个或一个以上电源726,一个或一个以上有线或无线网络接口750,一个或一个以上输入输出接口758,和/或,一个或一个以上操作系统741,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。
上述实施例中由BSF设备所执行的步骤可以基于该图7所示的BSF设备结构。更具体地,如图3所示,301-303中除302所涉及由PCF执行查询、生成响应消息以及发送响应消息之外的全部内容,图4中401、402、以及404的内容,图5中,501、502以及503的内容都由BSF设备基于图7所示的结构执行。更具体地,在图6中,管理确认单元601,目标确认单元602以及删除控制单元605由处理器722执行,参数发送单元603和响应接收单元604由有线或无线网络接口750或者由输入输出接口958执行。
本发明实施例还提供了另一种BSF设备,包括:处理器、存储器和收发器;上述述处理器、上述存储器和上述收发器以可通信方式连接;上述存储器中存储会话记录,上述会话记录由策略控制功能PCF设备创建;在上述存储器中存储有程序代码;上述处理器用于读取上述程序代码与上述收发器配合实现前述图3所示301-303中除302所涉及由PCF执行查询、生成响应消息以及发送响应消息之外的全部内容,图4中401、402、以及404的内容,图5中,501、502以及503的内容。
本发明实施例还提供了一种通信系统,如图8所示,包括:BSF设备801和PCF设备802,其中上述BSF设备为前述实施例中提供的任意一项的BSF设备。可以一并参考图1和2所示的系统。
本发明实施例还提供了一种计算机可读存储介质,上述存储介质中存储有程序代码,上述程序代码包括程序指令,上述程序指令当被处理器执行时使上述处理器与收发器配合实现本发明实施例任意一项方法的功能,具体参阅前文中的方法流程,在此不再详述。
本发明实施例还提供了一种计算机程序产品,在上述计算机程序产品中包含程序指令,上述程序指令当被上述处理器执行时使处理器与收发器配合实现本发明实施例提供的任意一项方法的功能,具体参阅前文中的方法流程,在此不再详述。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。

Claims (15)

  1. 一种数据管理方法,其特征在于,会话绑定功能BSF设备中存储会话记录,所述会话记录由策略控制功能PCF设备创建,所述方法包括:
    所述BSF设备向所述PCF设备发送所述会话记录的定位参数;
    所述BSF设备接收所述PCF设备返回的响应消息,依据所述响应消息确定所述定位参数对应的会话在所述PCF设备上不存在,则删除所述会话记录。
  2. 根据权利要求1所述方法,其特征在于,所述BSF设备接收所述PCF设备返回的响应消息,依据所述响应消息确定所述定位参数对应的会话在所述PCF设备上不存在,包括:
    所述BSF设备接收所述PCF设备返回的响应消息,在所述响应消息中携带用于指示所述定位参数对应的会话在所述PCF设备上不存在的错误码;依据所述错误码确定所述定位参数对应的会话在所述PCF设备上不存在。
  3. 根据权利要求1或2所述方法,其特征在于,所述方法还包括:
    从所述会话记录中读取所述会话记录中记录的所述PCF设备的地址;
    所述BSF设备向所述PCF设备发送所述会话记录的定位参数,包括:
    所述BSF设备向所述PCF设备的地址发送所述会话记录的定位参数。
  4. 根据权利要求1或2所述方法,其特征在于,所述方法还包括:
    所述BSF设备从所述会话记录中读取所述会话记录的时间戳,依据所述时间戳确定所述会话记录在所述BSF设备中存储的时长;确定所述会话记录在所述BSF设备中存储的时长超过所述会话记录有效期,则执行所述向所述PCF设备发送所述会话记录的定位参数。
  5. 根据权利要求4所述方法,其特征在于,所述方法还包括:
    若依据所述响应消息确定所述定位参数对应的会话存在,则更新所述会话记录信息中的时间戳为当前时间。
  6. 根据权利要求1或2所述方法,其特征在于,所述定位参数包括:
    所述会话记录的绑定标识、使用所述会话的用户设备地址、数据网络名称DNN或单一网络切片选择辅助信息S-NSSAI。
  7. 一种会话绑定功能BSF设备,其特征在于,所述BSF设备中存储会话记录,所述会话记录由策略控制功能PCF设备创建,所述BSF设备包括:
    参数发送单元,用于向所述PCF设备发送所述会话记录的定位参数;
    响应接收单元,用于接收所述PCF设备返回的响应消息;
    删除控制单元,用于依据所述响应消息确定所述定位参数对应的会话在所述PCF设备上不存在,则删除所述会话记录。
  8. 根据权利要求7所述BSF设备,其特征在于,
    所述响应接收单元,用于接收所述PCF设备返回的响应消息,在所述响应消息中携带用于指示所述定位参数对应的会话在所述PCF设备上不存在的错误码;
    所述删除控制单元,用于依据所述错误码确定所述定位参数对应的会话在所述PCF设备上不存在。
  9. 根据权利要求7或8所述BSF设备,其特征在于,所述BSF设备还包括:
    目标确认单元,用于从所述会话记录中读取所述会话记录中记录的所述PCF设备的地址;
    所述参数发送单元,用于向所述PCF设备的地址发送所述会话记录的定位参数。
  10. 根据权利要求7或8所述BSF设备,其特征在于,所述BSF设备还包括:
    管理确认单元,用于从所述会话记录中读取所述会话记录的时间戳,依据所述时间戳确定所述会话记录在所述BSF设备中存储的时长;确定所述会话记录在所述BSF设备中存储的时长超过所述会话记录有效期;
    所述参数发送单元,用于在所述管理确认单元确定所述会话记录在所述BSF设备中存储的时长超过所述会话记录有效期,向所述PCF设备发送所述会话记录的定位参数。
  11. 根据权利要求10所述BSF设备,其特征在于,
    所述管理确认单元,还用于若所述删除控制单元依据所述响应消息确定所述定位参数对应的会话存在,则更新所述会话记录信息中的时间戳为当前时间。
  12. 根据权利要求7或8所述BSF设备,其特征在于,所述定位参数包括:
    所述会话记录的绑定标识、使用所述会话的用户设备地址、数据网络名称DNN或单一网络切片选择辅助信息S-NSSAI。
  13. 一种会话绑定功能BSF设备,包括:处理器、存储器和收发器;所述述处理器、所述存储器和所述收发器以可通信方式连接;其特征在于,所述存储器中存储会话记录,所述会话记录由策略控制功能PCF设备创建;
    在所述存储器中存储有程序代码;
    所述处理器用于读取所述程序代码与所述收发器配合实现权利要求1至7任意一项的方法的功能。
  14. 一种通信系统,包括:会话绑定功能BSF设备和略控制功能PCF设备,所述BSF设备中存储会话记录,所述会话记录由所述PCF设备创建,其特征在于,所述BSF设备为权利要求7-12任意一项所述的BSF设备;
    所述PCF设备,用于根据所述BSF设备发送的定位参数向所述BSF设备发送响应消息,在所述响应消息中携带用于确定所述定位参数对应的会话在所述PCF设备上是否存在的信息。
  15. 一种计算机可读存储介质,其特征在于,
    所述存储介质中存储有程序代码,所述程序代码包括程序指令,所述程序指令当被处理器执行时使所述处理器与收发器配合实现权利要求1至6任意一项方法的功能。
PCT/CN2020/100207 2019-09-12 2020-07-03 一种数据管理方法,相关产品及通信系统 WO2021047259A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20863187.9A EP4024814A4 (en) 2019-09-12 2020-07-03 DATA MANAGEMENT PROCEDURES, RELATED PRODUCT AND COMMUNICATION SYSTEM
US17/691,433 US20220201085A1 (en) 2019-09-12 2022-03-10 Data management method, related product, and communications system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910866770.7 2019-09-12
CN201910866770.7A CN112491941A (zh) 2019-09-12 2019-09-12 一种数据管理方法,相关产品及通信系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/691,433 Continuation US20220201085A1 (en) 2019-09-12 2022-03-10 Data management method, related product, and communications system

Publications (1)

Publication Number Publication Date
WO2021047259A1 true WO2021047259A1 (zh) 2021-03-18

Family

ID=74867185

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/100207 WO2021047259A1 (zh) 2019-09-12 2020-07-03 一种数据管理方法,相关产品及通信系统

Country Status (4)

Country Link
US (1) US20220201085A1 (zh)
EP (1) EP4024814A4 (zh)
CN (1) CN112491941A (zh)
WO (1) WO2021047259A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210385302A1 (en) * 2020-06-03 2021-12-09 Verizon Patent And Licensing Inc. Method and system for policy control function discovery service
US11638134B2 (en) * 2021-07-02 2023-04-25 Oracle International Corporation Methods, systems, and computer readable media for resource cleanup in communications networks
US11709725B1 (en) 2022-01-19 2023-07-25 Oracle International Corporation Methods, systems, and computer readable media for health checking involving common application programming interface framework
US11917016B2 (en) * 2022-03-16 2024-02-27 Oracle International Corporation Methods, systems, and computer readable media for processing binding requests in a telecommunications network
CN117641563A (zh) * 2022-08-10 2024-03-01 中国电信股份有限公司 会话绑定方法及功能、存储介质及电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8509815B1 (en) * 2009-05-21 2013-08-13 Sprint Communications Company L.P. Dynamically updating a home agent with location-based information
CN106302638A (zh) * 2016-07-27 2017-01-04 华为技术有限公司 一种数据管理方法、转发设备及系统
CN108199870A (zh) * 2017-12-25 2018-06-22 新华三技术有限公司 会话处理方法、装置及电子设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101541100B (zh) * 2008-03-17 2012-07-04 华为技术有限公司 一种策略会话删除方法和装置
KR101516759B1 (ko) * 2008-10-29 2015-04-30 에스케이텔레콤 주식회사 호 세션 관리 시스템 및 호 세션 관리 방법
US10237257B2 (en) * 2016-02-03 2019-03-19 Cisco Technology, Inc. Network service header used to relay authenticated session information
US10262004B2 (en) * 2016-02-29 2019-04-16 Red Hat, Inc. Native snapshots in distributed file systems
CN110048951B (zh) * 2018-01-16 2020-11-27 中国移动通信有限公司研究院 一种pcf寻址方法及装置、设备、存储介质
CN111727595B (zh) * 2018-02-20 2024-03-22 上海诺基亚贝尔股份有限公司 用于通信的方法、装置和计算机可读存储介质

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8509815B1 (en) * 2009-05-21 2013-08-13 Sprint Communications Company L.P. Dynamically updating a home agent with location-based information
CN106302638A (zh) * 2016-07-27 2017-01-04 华为技术有限公司 一种数据管理方法、转发设备及系统
CN108199870A (zh) * 2017-12-25 2018-06-22 新华三技术有限公司 会话处理方法、装置及电子设备

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"3rd Generation Partnership Project; Technical Specification Group Core Network and Terminals; 5G System; Binding Support Management Service; Stage 3 (Release 15)", 3GPP STANDARD; TECHNICAL SPECIFICATION; 3GPP TS 29.521, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, no. V15.3.0, 28 March 2019 (2019-03-28), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France, pages 1 - 24, XP051723092 *
"3rd Generation Partnership Project; Technical Specification Group Core Network and Terminals; 5G System; Policy and Charging Control signalling flows and QoS parameter mapping; Stage 3 (Release 15)", 3GPP STANDARD; TECHNICAL SPECIFICATION; 3GPP TS 29.513, 3RD GENERATION PARTNERSHIP PROJECT (3GPP), MOBILE COMPETENCE CENTRE ; 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS CEDEX ; FRANCE, vol. CT WG3, no. V15.4.0, 17 June 2019 (2019-06-17), Mobile Competence Centre ; 650, route des Lucioles ; F-06921 Sophia-Antipolis Cedex ; France, pages 1 - 87, XP051754220 *
3GPP TS 23.513
See also references of EP4024814A4

Also Published As

Publication number Publication date
EP4024814A4 (en) 2022-11-02
EP4024814A1 (en) 2022-07-06
CN112491941A (zh) 2021-03-12
US20220201085A1 (en) 2022-06-23

Similar Documents

Publication Publication Date Title
WO2021047259A1 (zh) 一种数据管理方法,相关产品及通信系统
US11277306B2 (en) Sending information of a network repository function instance storing network function instance information
US10638308B2 (en) Network slice management apparatus and network slice management method
EP3879879B1 (en) Time sensitive networking communication method and apparatus thereof
US8874091B2 (en) Automatic device capabilities change notification
US11316943B2 (en) Subscription processing method, network node, and unified data repository
EP3952367A1 (en) Event notification method and device, and storage medium
US10051074B2 (en) Techniques for managing devices not directly accessible to device management server
WO2019223661A1 (zh) 一种识别应用标识的方法、设备及系统
WO2019137555A1 (zh) 策略控制功能管理方法和装置
JP5536232B2 (ja) ネットワーク接続をアイドリングさせる方法及び装置
US11956210B2 (en) Method and apparatus for transmitting application programming interface API request
US20070100958A1 (en) Method for selecting a functional domain name server
US20190037485A1 (en) Service node selection and query method, apparatus, and system
US8059598B2 (en) Wireless communication system and method for managing service flow identifier in the same
JP2012516584A (ja) 管理データ変更を追跡する方法および装置
CN106302638B (zh) 一种数据管理方法、转发设备及系统
US10680930B2 (en) Method and apparatus for communication in virtual network
WO2019178891A1 (zh) 一种处理设备故障的方法和系统
US7649899B2 (en) System and method for dynamic egress routing through a single default gateway in a mesh network
US11638134B2 (en) Methods, systems, and computer readable media for resource cleanup in communications networks
EP4344259A1 (en) Session binding relationship processing method and apparatus, electronic device, and readable medium
US20090059840A1 (en) Wireless communication system and method for managing service flow identifier in the same
US20240113996A1 (en) Routing information management method for a layer-3 switch, and system implementing the same
WO2023066398A1 (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: 20863187

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020863187

Country of ref document: EP

Effective date: 20220329