Multi-session processing method, storage medium and electronic device

By using a PCF address determination and redirection mechanism, the problem of duplicate SMS messages across multiple PCFs is solved, ensuring that the same user session is directed to the same PCF, avoiding duplicate SMS messages sent when traffic thresholds are reached, and improving the user experience.

CN121645559APending Publication Date: 2026-03-10ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In existing technologies, when a user's multiple sessions are distributed across multiple PCFs, the cumulative traffic usage across these PCFs can easily lead to the problem of sending duplicate SMS messages when it reaches a threshold.

Method used

By receiving the interface online request sent by the PCF, it determines whether the PCF address is the same, and returns an interface online failure response under different circumstances, instructing the AMF/SMF to redirect to the first saved PCF address, ensuring that the session of the same user is directed to the same PCF, and avoiding repeated SMS sending when the cumulative traffic usage reaches the threshold.

Benefits of technology

This effectively avoids sending duplicate SMS messages when the cumulative usage of multiple PCF traffic reaches the threshold, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121645559A_ABST
    Figure CN121645559A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a multi-session processing method, a storage medium and an electronic device. The method comprises the following steps: receiving an interface online request sent by a second PCF; under the indication of the session aggregation mark, judging whether the second PCF address is the same as the stored first PCF address or not; if the first PCF is different from the second PCF, returning an interface online failure response to the second PCF to indicate the second PCF to return a redirection message for redirecting to the first PCF to the AMF / SMF, so that the problem that short messages are repeatedly sent when a plurality of sessions of one user are distributed on a plurality of PCFs and the accumulated traffic usage of the plurality of PCFs reaches a threshold in the related technology can be solved, and the user experience is improved. When the PCF address of the request is determined to be different from the stored PCF address under the indication of the session aggregation mark carried in the interface online request, the AMF / SMF is notified to redirect the UE to the PCF corresponding to the stored PCF address, so that the session of the same user is ensured to be directed to the same PCF, and short messages are prevented from being repeatedly sent when the accumulated traffic amount reaches a threshold value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technology, and more specifically, to a multi-session processing method, a storage medium, and an electronic device. Background Technology

[0002] With the widespread use of the Internet of Things (IoT), users may access the network using multiple Access Point Names (APNs). When a user creates multiple sessions through the Session Management Function / Packet Data Gateway-Control (SMF / PGW-C) from multiple APNs, the SMF / PGW-C currently assigns different sessions to different Policy Control Functions (PCFs) for policy control.

[0003] When the cumulative traffic of one PCF exceeds the traffic threshold, it will trigger an SMS notification to the user. If the traffic of another PCF exceeds the traffic threshold, it will also trigger the same SMS notification. This results in the user receiving duplicate SMS messages, leading to a poor user experience.

[0004] When PCF1 and PCF2 form a pool, the PCFs and SMF / PGW-C are connected via a Diameter Routing Agent (DRA). When a user subscribes to multiple APNs, different APN sessions will be created on different SMFs / PGW-Cs. When the DRA receives forwarding messages from the SMF / PGW-C, it distributes them evenly to any PCF in the PCF pool. This can result in a user's multiple sessions being distributed across multiple PCFs. When the cumulative traffic usage of multiple PCFs reaches a threshold, SMS messages will be sent to all of them, leading to duplicate SMS messages.

[0005] There is no solution yet for the problem of repeated SMS messages being sent when multiple sessions of a user are distributed across multiple PCFs and the cumulative traffic usage of multiple PCFs reaches the threshold. Summary of the Invention

[0006] This application provides a multi-session processing method, storage medium, and electronic device to at least solve the problem in the related art where multiple sessions of a user are distributed across multiple PCFs, and the cumulative traffic usage of multiple PCFs reaches a threshold, resulting in repeated SMS messages.

[0007] According to one embodiment of this application, a multi-session processing method is provided, the method comprising:

[0008] Receive an interface online request sent by the second policy control function network element (PCF), wherein the interface online request carries a session aggregation flag and the address of the second PCF;

[0009] Under the instruction of the session aggregation flag, it is determined whether the second PCF address is the same as the saved first PCF address;

[0010] If the judgment results are different, an interface online failure response is returned to the second PCF. The interface online failure response is used to instruct the second PCF to return a redirect message to the Access and Mobility Management Function / Session Management Function (AMF / SMF) redirecting to the first PCF corresponding to the address of the first PCF.

[0011] According to another embodiment of this application, a multi-session processing apparatus is provided, the apparatus comprising:

[0012] The receiving module is used to receive an interface online request sent by the second policy control function network element (PCF), wherein the interface online request carries a session aggregation flag and the address of the second PCF.

[0013] The judgment module is used to determine, under the indication of the session aggregation flag, whether the second PCF address is the same as the saved first PCF address;

[0014] The return module is used to return an interface online failure response to the second PCF if the judgment results are different. The interface online failure response is used to instruct the second PCF to return a redirection message to the AMF / SMF redirecting to the first PCF corresponding to the address of the first PCF.

[0015] According to yet another embodiment of this application, a computer program product is also provided, including computer program instructions, wherein the computer program instructions cause a computer to implement the steps in any of the above method embodiments.

[0016] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.

[0017] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0018] In this embodiment, an interface online request sent by a second PCF is received. The interface online request carries a session aggregation flag and a second PCF address. Under the indication of the session aggregation flag, it is determined whether the second PCF address is the same as a saved first PCF address. If the determination result is different, an interface online failure response is returned to the second PCF. The interface online failure response is used to instruct the second PCF to return a redirection message to the AMF / SMF redirecting to the first PCF corresponding to the first PCF address. This can solve the problem in related technologies where multiple sessions of a user are distributed across multiple PCFs, and when the cumulative traffic usage of multiple PCFs reaches a threshold, SMS messages are repeatedly sent. When it is determined that the requested PCF address is different from the saved PCF address based on the session aggregation flag carried in the interface online request, the AMF / SMF is notified to redirect the UE to the PCF corresponding to the saved PCF address, ensuring that the sessions of the same user are directed to the same PCF and avoiding repeated SMS messages when the cumulative traffic usage reaches a threshold. Attached Figure Description

[0019] Figure 1 This is a hardware structure block diagram of a computer device for a multi-session processing method according to an embodiment of this application;

[0020] Figure 2 This is a flowchart of a multi-session processing method according to an embodiment of this application;

[0021] Figure 3 This is a multi-session processing flow according to an embodiment of this application. Figure 1 ;

[0022] Figure 4 This is a multi-session processing flow according to an embodiment of this application. Figure 2 ;

[0023] Figure 5 This is a multi-session processing flow according to an embodiment of this application. Figure 3 ;

[0024] Figure 6 This is a flowchart of a multi-session processing method according to an optional embodiment of this application;

[0025] Figure 7 This is a process for preventing duplicate SMS messages in multiple sessions according to an embodiment of this application. Figure 1 ;

[0026] Figure 8 This is a process for preventing duplicate SMS messages in multiple sessions according to an embodiment of this application. Figure 2 ;

[0027] Figure 9This is a process for preventing duplicate SMS messages in multiple sessions according to an embodiment of this application. Figure 3 ;

[0028] Figure 10 This is a process for preventing duplicate SMS messages in multiple sessions according to an embodiment of this application. Figure 4 ;

[0029] Figure 11 This is a block diagram of a multi-session processing apparatus according to an embodiment of this application. Detailed Implementation

[0030] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

[0031] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0032] The methods and embodiments provided in this application can be executed in a computer device or similar computing device. Taking running on a computer device as an example, Figure 1 This is a hardware structure block diagram of a computer device for a multi-session processing method according to an embodiment of this application, such as... Figure 1 As shown, a computer device may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor (MCU) or programmable logic device, etc.) and a memory 104 for storing data are also shown. The computer device may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer device described above. For example, the computer device may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0033] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the multi-session processing method in this embodiment. The processor 102 executes various functional applications and single-board matching by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to computer devices via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0034] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the computer equipment. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0035] This embodiment provides a multi-session processing method running on the aforementioned computer device. Figure 2 This is a flowchart of a multi-session processing method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:

[0036] Step S202: Receive an interface online request sent by the second PCF, which carries a session aggregation flag and the address of the second PCF.

[0037] Step S204: Under the instruction of the session aggregation flag, determine whether the second PCF address is the same as the saved first PCF address;

[0038] Step S206: If the judgment results are different, return an interface online failure response to the second PCF. The interface online failure response is used to instruct the second PCF to return a redirection message to the AMF / SMF to redirect to the first PCF corresponding to the address of the first PCF.

[0039] In the embodiments of this application, the SMF and AMF in AMF / SMF are logically separate in function, but are essentially the same entity, each corresponding to a different interface. AMF corresponds to the N15 interface, and SMF corresponds to the N7 interface.

[0040] By using the steps S202 to S206 above, the problem of repeatedly sending SMS messages when multiple sessions of a user are distributed across multiple PCFs and the cumulative traffic usage of multiple PCFs reaches the threshold can be solved in related technologies. When the requested PCF address is determined to be different from the saved PCF address based on the session aggregation flag carried in the interface online request, the AMF / SMF is notified to redirect the UE to the PCF corresponding to the saved PCF address, ensuring that the sessions of the same user are directed to the same PCF and avoiding repeated SMS messages when the cumulative traffic usage reaches the threshold.

[0041] In one embodiment, the first PCF address is stored before step S202. Specifically, the interface online request sent by the first PCF is received, and the interface online request carries the first PCF address. If the PCF address is not saved, the first PCF address is saved.

[0042] Taking the N15 / N7 interface policy linkage of AMF / SMF, PCF normal operation, and the execution subject being the user subscription database (Subscription Profile, abbreviated as SPR) as an example, the embodiments of this application will be described in detail.

[0043] Figure 3 This is a multi-session processing flow according to an embodiment of this application. Figure 1 ,like Figure 3 As shown, it includes:

[0044] S301, AMF / SMF initiates an interface registration request to PCF1 (corresponding to the first PCF mentioned above), carrying the PCF1 address (corresponding to the first PCF address mentioned above);

[0045] S302, PCF1 sends an online message for the Sp interface to SPR, carrying the PCF1 address and adding a session aggregation flag Session-Aggregation-Flag=1. This parameter indicates that if SPR has already stored the PCF address and it is different, it needs to reject the message and return the existing PCF address in the response message.

[0046] S303, SPR stores the PCF1 address;

[0047] S304, SPR returns a successful response to PCF1 regarding the Sp interface, carrying the user's subscription information;

[0048] S305, PCF1 returns a successful interface registration response to AMF / SMF;

[0049] S306, AMF / SMF initiates an interface registration request (corresponding to the interface online request) to PCF2 (corresponding to the second PCF mentioned above), carrying the PCF2 address (corresponding to the second PCF address mentioned above);

[0050] S307, PCF2 sends an interface online message to SPR, carrying the PCF2 address and the session aggregation flag Session-Aggregation-Flag=1;

[0051] S308, the function switch for judging the session aggregation flag of SPR is turned on, and the PCF2 address in the online message of the Sp' interface is inconsistent with the already saved PCF1 address;

[0052] S309, SPR returns an interface online failure response. Specifically, the interface online failure response can be Result_Code = DIAMETER_AUTHORIZATION_REJECTED(5003), and the previously saved PCF1 address is carried in Master_PCF_HostName AVP. User subscription information is not returned.

[0053] S310, PCF2 confirms that PCF1 is in normal condition;

[0054] S311, PCF2 returns a redirection message to AMF / SMF, carrying the address of PCF1;

[0055] S312, AMF / SMF initiates an interface registration request to PCF1, carrying the PCF1 address;

[0056] S313, PCF1 already has a session with this user, so it directly returns a registration success response.

[0057] Subsequent cumulative usage was all on PCF1, and SMS messages were also sent via PCF1.

[0058] When the second PCF detects an anomaly in the first PCF, the second PCF can request a destination update, or force a destination update to the second PCF. Specifically, it receives an interface forced destination update message sent by the second PCF upon confirming the first PCF's anomaly; and updates the saved first PCF address to the second PCF address based on the interface forced destination update message. Furthermore, the second PCF can also request user subscription information. The second PCF can also receive a returned interface online success response. Instructed by the interface online success response, the second PCF returns an interface registration response to the AMF / SMF. Both the interface online success response and the interface registration response carry user subscription information.

[0059] The following section uses the N15 / N7 interface strategy linkage of AMF / SMF and PCF exception as an example to explain the above process in detail.

[0060] Figure 4 This is a multi-session processing flow according to an embodiment of this application. Figure 2 ,like Figure 4 As shown, it includes:

[0061] S401, AMF / SMF initiates an interface registration request to PCF1;

[0062] S402, PCF1 sends an online message for the Sp interface to SPR, carrying Session-Aggregation-Flag = 1;

[0063] S403, SPR stores the PCF1 address;

[0064] S404, SPR returns a successful response to PCF1 regarding the Sp interface, carrying the user's subscription information;

[0065] S405, PCF1 returns a successful interface registration response to AMF / SMF;

[0066] S406, AMF / SMF initiates an interface registration request to PCF2;

[0067] S407, PCF2 sends an interface online message to UPR, carrying Session-Aggregation-Flag = 1;

[0068] S408, SPR determines that the function switch for determining the session aggregation flag is turned on, and the PCF2 address in the request message is inconsistent with the already saved PCF1 address;

[0069] S409, SPR returns an interface online failure response. Specifically, the interface online failure response can be Result_Code = DIAMETER_AUTHORIZATION_REJECTED(5003), and the previously saved PCF1 address is carried in Master_PCF_HostName AVP. User subscription information is not returned.

[0070] S410, PCF2 determines that PCF1 is in an abnormal state;

[0071] S411, PCF2 sends an interface forced update local direction message to SPR, and at the same time requests user subscription information;

[0072] S412, SPR updates the local direction and saves the PCF2 address;

[0073] S413, SPR returns a successful response to PCF2 regarding the Sp interface, carrying the user's subscription information;

[0074] S414, PCF2 returns a successful interface registration response to AMF / SMF.

[0075] When users come online from different PCFs, and the previously saved PCF is working properly, the PCF can notify the AMF / SMF to redirect to the previously saved PCF, ensuring that multiple sessions are distributed on a single reliable PCF.

[0076] After the update is sent to the second PCF, if the first PCF requests to go offline, it needs to determine whether the PCF address requested in the downlink is the same as the currently saved PCF address. If the result is different, the offline request is approved. The system receives the interface offline request sent by the first PCF after receiving the interface deregistration request from the AMF. This interface offline request carries a session aggregation flag and the first PCF address. Based on the session aggregation flag, it is determined that the first PCF address and the second PCF address are different. An interface offline success response is sent to the first PCF, so that the first PCF sends an interface deregistration success response to the AMF / SMF. This interface offline success response carries the second PCF address.

[0077] Figure 5 This is a multi-session processing flow according to an embodiment of this application. Figure 3 ,like Figure 5 As shown, it includes:

[0078] S501, AMF / SMF initiates an interface cancellation request to PCF1;

[0079] S502, PCF1 sends an Sp interface offline message to SPR, carrying Session-Aggregation-Flag = 1;

[0080] S503, SPR determines that the function switch for determining the session aggregation flag is turned on, and the PCF1 address in the request message is inconsistent with the already saved PCF2 address;

[0081] S504, SPR returns a successful interface offline response to PCF1. Specifically, the successful interface offline response can be Result_Code = DIAMETER_AUTHORIZATION_REJECTED (5003), and the previously saved PCF2 hostname is carried in Master_PCF_HostNameAVP.

[0082] S505, PCF1 returns a successful interface deregistration response to AMF / SMF;

[0083] When PCF2 needs to be deregistered later, it can be deregistered normally.

[0084] S506, AMF / SMF initiates an interface cancellation request to PCF2;

[0085] S507, PCF2 sends an Sp interface offline message to SPR, carrying Session-Aggregation-Flag = 1;

[0086] S508, the function switch for SPR to determine the session aggregation flag is turned on, and the PCF2 address in the request message is consistent with the already saved PCF2 address;

[0087] S509, SPR returns success to PCF2 and clears the saved PCF2 address;

[0088] S510, PCF2 returns a successful interface deregistration response to AMF / SMF.

[0089] If multiple sessions are distributed across multiple PCFs due to PCF version issues, missing or unprocessed redirected messages, or other anomalies, SMS deduplication will be initiated to prevent duplicate SMS messages from being sent.

[0090] Figure 6 This is a flowchart of a multi-session processing method according to an optional embodiment of this application, such as... Figure 6 As shown, the above method also includes:

[0091] Step S602: When multiple sessions of the UE are simultaneously distributed on the first PCF and the second PCF, determine whether the SMS messages to be sent reported by the first PCF and the second PCF are duplicates.

[0092] Step S604: Based on different judgment results, instruct the first PCF and the second PCF to process the SMS message to be sent differently. The SMS message to be sent is reported by the first PCF or the second PCF when the cumulative traffic usage reaches a preset threshold.

[0093] In one embodiment, a text message sending request reported by a first PCF is received, which carries text message information to be sent. If it is determined that the text message information to be sent does not exist, the text message information to be sent is saved, and a text message sending consent response is returned to the first PCF. The text message sending consent response is used to instruct the first PCF to send the text message information to be sent to the Short Message Center (SMSC). A notification message is sent to the second PCF, which is notified to abandon sending the text message information to be sent when it is determined that the usage exceeds the threshold and a text message needs to be sent, that is, to notify the second PCF not to send duplicate text message information. If it is determined that the text message information to be sent exists, a text message sending response is returned to the first PCF. This text message sending response carries a failure message, which instructs the first PCF to abandon sending the text message information to be sent, ensuring that the first PCF does not send the same text message information repeatedly.

[0094] For other scenarios where PCFs can receive SMS notifications, Figure 7 This is a process for preventing duplicate SMS messages in multiple sessions according to an embodiment of this application. Figure 1 ,like Figure 7 As shown, it includes:

[0095] S701, during the user's online period, SMF / PGW-C1 or SMF / PGW-C2 reports the usage to PCF1;

[0096] S702, PCF1 accumulates usage to determine if the usage threshold has been reached;

[0097] S703 returns a response message to SMF / PGW-C1 or SMF / PGW-C2;

[0098] S704, PCF1 reports the SMS information (i.e. the SMS information to be sent) to SPR before sending the SMS.

[0099] S705, SPR determines that this SMS message does not exist and stores this SMS message;

[0100] S706, returns a success response to PCF1;

[0101] S707, PCF1 sends a text message to SMSC indicating that the usage exceeds the threshold;

[0102] S708, SMSC returns a response to PCF1;

[0103] S709, SPR sends a notification message to PCF2 to inform the user of the current total usage value and the content of this SMS message;

[0104] S710, PCF2 determines that the usage has reached the usage threshold and needs to send an SMS message. The content of the SMS message is the same as that of PCF1, and the SMS message will not be sent again.

[0105] For scenarios where other PCFs have not yet received an SMS notification, the SMS message is triggered. Figure 8 This is a process for preventing duplicate SMS messages in multiple sessions according to an embodiment of this application. Figure 2 ,like Figure 8 As shown, it includes:

[0106] S801, during the user's online period, SMF / PGW-C1 or SMF / PGW-C2 reports the usage to PCF1;

[0107] S802, PCF1 accumulates usage to determine if the usage threshold has been reached;

[0108] S803 returns a response message to SMF / PGW-C1 or SMF / PGW-C2;

[0109] Before sending a text message, S804 and PCF1 report the text message information (i.e. the text message to be sent) to SPR.

[0110] S805, SPR determines that this SMS message does not exist, and stores this SMS message;

[0111] S806 returns a success response to PCF1;

[0112] S807, PCF1 sends a text message to SMSC indicating that the usage exceeds the threshold;

[0113] S808, SMSC returns a response to PCF1;

[0114] S809, Before receiving a notification from PCF1, PCF2 determines that the cumulative usage has reached the usage threshold and needs to send an SMS (the same as the PCF1 SMS).

[0115] S810, PCF2 reports SMS information to SPR before sending SMS;

[0116] S811, after receiving the reported SMS message, SPR first checks the database and finds that the SMS message already exists;

[0117] S812 returns a failure message to PCF2, specifically, it can return REQUESTED_NOTE_INFO_ALREADY_EXISTED to PCF2;

[0118] S813, PCF2 received an error response and stopped sending the SMS, thus preventing the same SMS from being sent repeatedly.

[0119] If there is a conflict between the SMS messages from the first PCF and the second PCF, only the first PCF will be responded to, and the second PCF will be rejected to avoid duplicate SMS messages. Specifically, the system receives an SMS sending request from the first PCF, which carries the SMS message to be sent; it also receives an SMS sending request from the second PCF, which carries the SMS message to be sent; it determines that there is a conflict between the sequence numbers of the SMS messages to be sent from the first PCF and the second PCF; it saves the SMS message and returns an SMS sending consent response to the first PCF, instructing the first PCF to send the SMS message to the SMSC, i.e., the SMS message to be sent from the first PCF can be sent; and it sends an SMS sending failure response to the second PCF, instructing the second PCF to abandon sending the SMS message to be sent, i.e., instructing the second PCF not to send, thereby avoiding duplicate SMS messages.

[0120] If the text message does not exist in SPR, concurrently compose the text message. Figure 9 This is a process for preventing duplicate SMS messages in multiple sessions according to an embodiment of this application. Figure 3 ,like Figure 9 As shown, it includes:

[0121] S901, during the user's online period, SMF / PGW-C1 or SMF / PGW-C2 reports the usage to PCF1;

[0122] S902, PCF1 accumulates usage to determine if the usage threshold has been reached;

[0123] S903, return a response message to SMF / PGW-C1 or SMF / PGW-C2;

[0124] S904, PCF1 reports the SMS information to SPR before sending the SMS;

[0125] S905, and PCF2 reports the SMS information to SPR before sending the SMS;

[0126] S906, SPR determines that there is a conflict in the serial number;

[0127] S907, SPR stores the PCF1 SMS message and returns a success response to PCF1;

[0128] S908, returns a failure message to PCF2, carrying REQUESTED_NOTE_INFO_ALREADY_EXISTED to PCF2;

[0129] S909, PCF2 received an error response and stopped sending the SMS message, thus preventing the same SMS message from being sent repeatedly.

[0130] If the first PCF and the second PCF simultaneously request to send SMS messages through business threads, business thread 1 receives the first SMS sending request reported by the first PCF, and business thread 2 simultaneously receives the second SMS sending request reported by the second PCF. Both the first and second SMS sending requests carry SMS messages to be sent (i.e., simultaneously requesting to send the same SMS message). Business threads 1 and 2 simultaneously query the database. If no SMS message identical to the one to be sent exists, business thread 1 updates the SMS message successfully, while business thread 2 fails to update the SMS message. This allows one PCF to send normally, while the other does not. Business thread 1 returns an SMS sending consent response to the first PCF, instructing the first PCF to send the SMS message to the SMSC. Business thread 2 returns an SMS sending failure response to the second PCF, instructing the second PCF to abandon sending the SMS message, thus avoiding duplicate sending of the simultaneously requested identical SMS message.

[0131] Figure 10 This is a process for preventing duplicate SMS messages in multiple sessions according to an embodiment of this application. Figure 4 ,like Figure 10 As shown, it includes:

[0132] S1001, PCF1 reports the SMS information to SPR's business thread 1 before sending the SMS;

[0133] S1002, PCF2 reports the SMS information to SPR's business thread 2 before sending the SMS;

[0134] The above steps S1001 and S1002 occur simultaneously, that is, PCF1 and PCF2 are sent at the same time.

[0135] S1003, Business thread 1 queries the database to see if there is a matching SMS message, and no matching SMS message is found;

[0136] S1004, Business Thread 2 is also querying the database to see if there is a matching SMS message, but no matching SMS message was found;

[0137] The above steps S1003 and S1004 are executed simultaneously.

[0138] S1005, the database returns SQN=0 to business thread 1;

[0139] S1006, the database returns SQN=0 to business thread 2;

[0140] The above steps S1005 and S1006 are executed simultaneously.

[0141] S1007, Business Thread 1 updates SMS and simultaneously sets SQN+1=1;

[0142] S1008, Business thread 1 writes an SMS message to the database, carrying SQN=1;

[0143] S1009, the database determines that SQN=1 is 1 greater than 0 in the database, the SMS update is successful;

[0144] S1010, Business Thread 2 updates SMS, and simultaneously sets SQN+1=1;

[0145] S1011, Business thread 2 writes an SMS message to the database, carrying SQN=1;

[0146] S1012, The database determines that SQN=1 is not 1 greater than SQN in the database, and the SMS update fails;

[0147] S1013, Service successful, SMS sent successfully;

[0148] S1014, Service response failed;

[0149] S1015, notify PCF2 to stop sending this text message.

[0150] This application also provides a multi-session processing device. Figure 11 This is a block diagram of a multi-session processing apparatus according to embodiments of this application, such as... Figure 11 As shown, the device includes:

[0151] The receiving module 112 is used to receive an interface online request sent by the second PCF, wherein the interface online request carries a session aggregation flag and the address of the second PCF.

[0152] The judgment module 114 is used to determine, under the indication of the session aggregation flag, whether the second PCF address is the same as the saved first PCF address;

[0153] The return module 116 is used to return an interface online failure response to the second PCF when the judgment results are different. The interface online failure response is used to instruct the second PCF to return a redirection message to the AMF / SMF to redirect to the first PCF corresponding to the address of the first PCF.

[0154] This application also provides a computer program product, including computer program instructions, wherein the computer program instructions cause a computer to implement the steps in any of the above method embodiments.

[0155] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.

[0156] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0157] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0158] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0159] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0160] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0161] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A multi-session processing method, characterized by, The method comprises: receiving an interface online request sent by a second policy control function network element PCF, wherein the interface online request carries a session aggregation flag and a second PCF address; determining whether the second PCF address is the same as a saved first PCF address according to the session aggregation flag; in the case of different determination results, returning an interface online failure response to the second PCF, wherein the interface online failure response is used to instruct the second PCF to return a redirection message to the first PCF corresponding to the first PCF address to an access and mobility management function / session management function AMF / SMF.

2. The method of claim 1, wherein, The method further comprises: receiving an interface online request sent by a first PCF, wherein the interface online request carries the first PCF address; in the case of no saved PCF address, saving the first PCF address.

3. The method of claim 1, wherein, The method further comprises: receiving an interface forced update direction message sent by the second PCF in the case of determining that the first PCF is abnormal; updating the saved first PCF address to the second PCF address according to the interface forced update direction message.

4. The method of claim 3, wherein, The method further comprises: receiving an interface offline request sent by the first PCF after receiving an interface logout request sent by the AMF / SMF, wherein the interface offline request carries the session aggregation flag and the first PCF address; determining that the first PCF address is different from the second PCF address according to the session aggregation flag; sending an interface offline success response to the first PCF, so that the first PCF sends an interface logout success response to the AMF / SMF, wherein the interface offline success response carries the second PCF address.

5. The method of claim 1, wherein, The method further comprises: in the case of multiple sessions being simultaneously distributed on the first PCF and the second PCF, determining whether the to-be-sent short message information reported by the first PCF and the second PCF is repeated sending, and instructing the first PCF and the second PCF to perform different processing on the to-be-sent short message according to different determination results, wherein the to-be-sent short message information is reported by the first PCF or the second PCF in the case of determining that the traffic cumulative amount reaches a preset threshold.

6. The method of claim 5, wherein, Determining whether the to-be-sent short message information reported by the first PCF and the second PCF is repeated sending, and instructing the first PCF and the second PCF to perform different processing on the to-be-sent short message according to different determination results comprises: receiving a short message sending request reported by the first PCF, wherein the short message sending request carries the to-be-sent short message information; in the case of determining that the to-be-sent short message information does not exist, saving the to-be-sent short message information, and returning a short message sending agreement response to the first PCF, wherein the short message sending agreement response is used to instruct the first PCF to send the to-be-sent short message information to a short message center SMSC; sending a notification message to the second PCF, wherein the notification message is used to inform the second PCF to abandon sending the to-be-sent short message information when it is determined that the usage exceeds a threshold value and the short message needs to be sent.

7. The method of claim 6, wherein, The method further comprises: determining that the to-be-sent short message information exists, and returning a short message sending response to the first PCF, wherein the short message sending response carries a failure message, which is used to instruct the first PCF to abandon sending the to-be-sent short message information.

8. The method of claim 5, wherein, determining whether the to-be-sent short message information reported by the first PCF and the second PCF is repeated sending, and instructing the first PCF and the second PCF to perform different processing on the to-be-sent short message according to different determination results, comprising: receiving a short message sending request reported by the first PCF, wherein the short message sending request carries the to-be-sent short message information; receiving a short message sending request reported by the second PCF, wherein the short message sending request carries the to-be-sent short message information; determining that the sequence numbers of the to-be-sent short message information of the first PCF and the second PCF exist conflict; saving the short message information, and returning a short message sending agreement response to the first PCF, wherein the short message sending agreement response is used to instruct the first PCF to send the to-be-sent short message information to a short message center (SMSC); sending a short message sending failure response to the second PCF, wherein the short message sending failure response is used to instruct the second PCF to abandon sending the to-be-sent short message information.

9. The method of claim 5, wherein, determining whether the to-be-sent short message information reported by the first PCF and the second PCF is repeated sending, and instructing the first PCF and the second PCF to perform different processing on the to-be-sent short message according to different determination results, comprising: receiving a first short message sending request reported by the first PCF through a business thread 1, and receiving a second short message sending request reported by the second PCF through a business thread 2 at the same time, wherein the first short message sending request and the second short message sending request carry the to-be-sent short message information; simultaneously querying a database through the business thread 1 and the business thread 2; in the case that there is no short message information identical to the to-be-sent short message information, updating the short message information successfully through the business thread 1, and updating the short message information unsuccessfully through the business thread 2; returning a short message sending agreement response to the first PCF through the business thread 1, wherein the short message sending agreement response is used to instruct the first PCF to send the to-be-sent short message information to a short message center (SMSC); and returning a short message sending failure response to the second PCF through the business thread 2, wherein the short message sending failure response is used to instruct the second PCF to abandon sending the to-be-sent short message information.

10. A computer readable storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method described in any one of claims 1 to 9 when running.

11. An electronic device, comprising: A computer program product comprising a memory having stored therein a computer program and a processor arranged to execute the computer program to perform the method of any one of claims 1 to 9.