Method and related equipment for controlling user logout status

By constructing and managing mapping relationships in the call session control function network element of the 5G messaging platform, the problem of user status inconsistency caused by network interruption is solved, ensuring the status consistency between the data center and the terminal, and improving the stability of the platform and user experience. .

CN117336898BActive Publication Date: 2024-09-13CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311279251.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2024-09-13
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

In the 5G messaging platform, network interruptions lead to inconsistencies between the user status of the user data center and the actual terminal. Especially during the DC switching process, the 5G message status of the terminal fails to log out normally, resulting in data inconsistency.

Method used

By constructing and managing the mapping relationship in the call session control functional network element to represent the corresponding relationship between the connection information of the link and the IP multimedia public identity IMPU of the user terminal, it is ensured that the mapping relationship can be completely deleted when a logout request is received. And send a logout notification to subscribers to ensure the consistency of the data center and terminal status.

Benefits of technology

It effectively solves the problem of user status inconsistency caused by network interruption and ensures the stability and user experience of the 5G messaging platform. In particular, it can handle the logout process normally and maintain data consistency during DC switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117336898B
    Figure CN117336898B
Patent Text Reader

Abstract

The present disclosure provides a method for controlling the user logout status and related equipment, and relates to the field of communication technology. The method includes: constructing a mapping relationship according to a registration request of a message of a user terminal, wherein the mapping relationship is used to characterize the correspondence between the connection information of a link and the IP multimedia public identification IMPU of the user terminal; when a logout request of a message of a user terminal is received on a link, the message is logged out, and the mapping relationship is deleted through the connection information on the link; and a logout notification is sent to the subscriber of the message of the user terminal. The present disclosure solves the problem of inconsistency between the user status of the user data center and the actual terminal by establishing a mapping relationship between the connection information of the link and the IMPU of the user terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] The fifth generation of mobile communication technology (5G) uses SMS as the entry point, and realizes industry message interaction by supporting short videos, high-definition pictures, long texts, and voice communications. It breaks the length limit of traditional SMS, and it does not require the download of mobile phone software (App, Application), and does not require account login, making it more interactive, multimedia, and lightweight. 5G messages are pushed and downloaded faster, and the gateway speed can reach 500 messages per second, so it can support massive data interaction and transmission. As the access point for 5G message terminal users, the stability of the 5G message platform is very important for user experience.

[0003] In the prior art, in order to enhance the disaster recovery and backup capabilities of the platform, the platform design and deployment generally implements the ability to access dual primary data centers (DCs), that is, when a DC fails, users can be connected to another DC, thereby ensuring that users of the failed DC can be migrated to another DC and the impact on the terminal's 5G message service is minimized. However, during the DC switching process and under the influence of the complex network environment on the Internet, it is easy for the network to be suddenly interrupted during the use of the terminal, resulting in the 5G message status on the terminal showing that it has been cancelled. However, since the network has been interrupted during this process, the terminal and the platform have not completed the complete cancellation process, resulting in the inconsistency between the 5G message status of the terminal user stored in the user data center and the status of the 5G message user of the actual terminal.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The present disclosure provides a method for controlling the user logout status and related devices, which at least to a certain extent overcome the problem of inconsistency between the user status of a user data center and an actual terminal due to network interruption in the related art.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] According to one aspect of the present disclosure, a method for controlling a user logout state is provided, which is applied to a call session control function network element, and includes: constructing a mapping relationship according to a registration request of a message of a user terminal, wherein the mapping relationship is used to characterize the correspondence between connection information of a link and an IP multimedia public identity IMPU of the user terminal; when a logout request of a message of a user terminal is received on a link, the message is logout, and the mapping relationship is deleted through the connection information on the link; and a logout notification is sent to a subscriber of the message of the user terminal.

[0008] In some embodiments, before constructing a mapping relationship based on a registration request of a message from a user terminal, the method further includes: obtaining the registration request, determining connection information of a link based on the registration request; and sending a response message to the user terminal, wherein the response message carries an IMPU of the user terminal.

[0009] In some embodiments, before sending a cancellation notification to a subscriber of a message of the user terminal, the method further includes: determining whether a mapping relationship corresponding to the connection information exists; if so, deleting the mapping relationship corresponding to the connection information.

[0010] In some embodiments, after constructing the mapping relationship according to the registration request of the message of the user terminal, the method further includes: storing the mapping relationship in a data block, wherein one mapping relationship corresponds to one user terminal.

[0011] In some embodiments, when registration requests for messages from multiple user terminals are obtained, storing the mapping relationship in a data block includes: determining user attributes of each user terminal based on the IMPU of each user terminal; determining a processing priority for each user terminal based on the user attributes; determining a storage order and storage location of the mapping relationship for each user terminal based on the processing priority; and storing the mapping relationship for each user terminal in a corresponding storage order and storage location.

[0012] In some embodiments, when logout requests for messages from multiple user terminals are obtained, the method further includes: determining user attributes of each user terminal based on the IMPU of each user terminal; determining a processing priority for each user terminal based on the user attributes; determining a deletion order for the mapping relationship of each user terminal based on the processing priority; and deleting the mapping relationship of each user terminal in accordance with the corresponding deletion order.

[0013] In some embodiments, the user attributes include one or more of ordinary users, VIP users, corporate users and special users; the processing priority is determined according to the user attributes; the storage order and storage location of the mapping relationship of the user terminal are determined according to the processing priority, including: when the user attribute is a VIP user, a corporate user or a special user, the processing priority is determined to be the first priority; the mapping relationship of the user terminal of the VIP user, the corporate user or the special user is stored in the first storage block; when the user attribute is an ordinary user, the processing priority is determined to be the second priority; the mapping relationship of the user terminal of the ordinary user is stored in the second storage block; wherein the storage order of the first priority is before the storage order of the second priority.

[0014] In some embodiments, determining the storage order and storage location of the mapping relationship of each user terminal according to the processing priority includes: when the user attribute is a VIP user, an enterprise user or a special user, determining the priority score according to the expiration time information and activity level information of the user terminal in the service; determining the storage / deletion order of the mapping relationship of the user terminal according to the priority score.

[0015] In some embodiments, the activity level information includes: setting a statistical time interval; within the time interval, counting the number of IMPUs carried in the authentication request information; determining a frequency value based on the number of IMPUs carried in the authentication request information; and determining the activity level information based on the frequency value and a preset coefficient.

[0016] According to another aspect of the present disclosure, a device for controlling the user logout status is also provided, including: a mapping relationship construction module, used to construct a mapping relationship according to a registration request of a message of a user terminal, wherein the mapping relationship is used to characterize the correspondence between the connection information of a link and the IP multimedia public identity IMPU of the user terminal; a mapping relationship deletion module, used to deregister the message when a logout request of a message from a user terminal is received on a link, and to delete the mapping relationship through the connection information on the link; a logout notification sending module, used to send a logout notification to a subscriber of the message of the user terminal.

[0017] According to another aspect of the present disclosure, an electronic device is also provided, which includes: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned methods for controlling the user logout status by executing the executable instructions.

[0018] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for controlling the user logout status described in any one of the above is implemented.

[0019] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements any of the above methods for controlling the user logout status when executed by a processor.

[0020] The method for controlling the user deregistration status provided in the embodiments of the present disclosure is applied to the call session control function network element, and a mapping relationship is constructed according to the registration request of the message of the user terminal, wherein the mapping relationship is used to characterize the correspondence between the connection information of the link and the IP multimedia public identification IMPU of the user terminal; when a deregistration request of the message of the user terminal is received on the link, the message is deregistered, and the mapping relationship is deleted through the connection information on the link; and a deregistration notification is sent to the subscriber of the message of the user terminal. The present disclosure establishes a mapping relationship between the connection information of the link and the IMPU of the user terminal. When the CSCF obtains the message deregistration request, the mapping relationship is deleted and a deregistration notification is initiated to the subscriber of the message of the user, thereby solving the problem of inconsistency between the user status of the user data center and the actual terminal caused by network interruption.

[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0023] Figure 1 A schematic diagram showing an exemplary application system architecture of a method for controlling a user logout state in an embodiment of the present disclosure;

[0024] Figure 2 A flow chart of a method for controlling a user logout state in an embodiment of the present disclosure is shown;

[0025] Figure 3 A flowchart showing a specific example of a method for controlling a user logout state in an embodiment of the present disclosure;

[0026] Figure 4 A flowchart showing another specific example of a method for controlling a user logout state in an embodiment of the present disclosure;

[0027] Figure 5 A flowchart showing another specific example of a method for controlling a user logout state in an embodiment of the present disclosure;

[0028] Figure 6 A flowchart showing a process of establishing a relationship between Conn_ID and IMPU on a P-CSCF in an embodiment of the present disclosure is shown;

[0029] Figure 7 A flow chart showing a P-CSCF uplink status detection process in an embodiment of the present disclosure is shown;

[0030] Figure 8 A flowchart showing a process for processing a link status event on a P-CSCF in an embodiment of the present disclosure is shown;

[0031] Fig. 9 A flowchart showing a process of receiving and processing an event message from a P-CSCF on an S-CSCF in an embodiment of the present disclosure;

[0032] Fig.10 A flowchart showing a process of constructing an active deregistration message on an S-CSCF in an embodiment of the present disclosure is shown;

[0033] Fig.11 A flow chart showing a message interaction frequency collection and calculation process in an embodiment of the present disclosure;

[0034] Fig.12 A schematic diagram of a device for controlling a user logout state in an embodiment of the present disclosure is shown;

[0035] Fig.13 A structural block diagram of a computer device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0036] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0037] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0038] For ease of understanding, before introducing the embodiments of the present disclosure, several terms involved in the embodiments of the present disclosure are first explained as follows:

[0039] DC:Data Center, data center;

[0040] IMSI: International Mobile Subscriber Identity, international mobile subscriber identification code;

[0041] IMPU: IP Multimedia Public Identity, IP Multimedia Public Identity;

[0042] CSCF: Call Session Control Function, call session control function;

[0043] P-CSCF: Proxy-CSCF, proxy-call session control function;

[0044] I-CSCF: Interrogating-CSCF, query-call session control function;

[0045] S-CSCF: Serving-CSCF, service-call session control function;

[0046] HSS: Home Subscriber Server, home subscriber server;

[0047] ID: Identity document, ID card identification number, unique code, exclusive number;

[0048] Conn_ID: Connect_ID, connection ID number;

[0049] AVP: Attribute-Value Pair, data identification name;

[0050] URI: Uniform Resource Identifier, uniform resource identifier;

[0051] P-Associated-URI: associated URI.

[0052] The specific implementation of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.

[0053] Figure 1 FIG. 1 is a schematic diagram showing an exemplary application system architecture to which the method for controlling the user logout status in the embodiment of the present disclosure can be applied. Figure 1 As shown, the system architecture may include a terminal device UE 101 , a P-CSCF 102 , an I-CSCF 103 , an S-CSCF 104 and an HSS 105 .

[0054] When a 5G message (service) user accesses the P-CSCF, the link Conn_ID number information (connection information) is established for this link. When the 5G message user sends a message registration request (Register), the Conn_ID information of the link corresponding to this message registration request is obtained. When the platform receives a 200OK response message for this user's registration, and the AVP attribute P-Associated-URI in this response carries the user's IMPU, the corresponding IMPU value is extracted from the response message, a mapping relationship is established between Conn_ID and IMPU, and it is saved in the storage system.

[0055] After the terminal sends the message deregistration request process, when the P-CSCF receives the 200ok response sent by the S-CSCF, that is, the terminal 5G message has been successfully deregistered on the platform side (user status database) (deregistration of 5g message), then find the Conn_ID corresponding to the link of this link, and delete the information corresponding to this Conn_ID in the storage system (establish a mapping relationship between Conn_ID and IMPU).

[0056] A status monitoring device is established between the terminal and S-CSCF on the P-CSCF. After the status of the terminal and the P-CSCF changes, first search the storage system for the corresponding entry information based on the Conn_ID of this link (the mapping relationship established between Conn_ID and IMPU corresponds to an entry information in the storage system). If not, it means that the user of this terminal has successfully logged out normally, and this state change event can be ignored. If there is a storage entry corresponding to this Conn_ID in the storage system (equivalent to the above entry information), it means that the 5G message of the user of this terminal has not been successfully logged out normally, and the relevant information (Conn_ID, IMPU) corresponding to this entry (equivalent to the above entry information) is taken out and stored in the corresponding status event storage device

[0057] A group of status event processors is established for each group of status event storage devices. The status event processors monitor the event cache device in real time, periodically, or by notification. Once there is an entry that needs to be processed (equivalent to the above-mentioned entry information), the information corresponding to the Conn_ID (including Conn_ID and IMPU) is sent to the deregistration event processing device on the S-CSCF.

[0058] The essence of each entry is stored in a key-value pair, including (Conn_ID and IMPU). Conn_ID is used as the key and IMPU is used as the value. It is stored in the form of (key, value).

[0059] The tasks of receiving, distributing, accessing and processing the deregistered user information are established on the S-CSCF. The processing task is responsible for taking out the user information (IMPU) from the storage device in sequence to construct the deregistration message corresponding to the user, and then sending the deregistration notification to all subscribers of the 5G message of the user (IMPU) (notifying other third-party devices, updating the storage status database, and third-party registration).

[0060] In a specific example, when the UE registers, the UE sends Register to the P-CSCF (S101), the P-CSCF sends Register to the I-CSCF (S102), requests the allocation of the S-CSCF (S103), allocates the S-CSCF (S104), the I-CSCF sends Register to the S-CSCF (S105), the S-CSCF requests the authentication data from the HSS, the HSS calculates the AV vector (access vector), and the HSS returns the authentication data (authentication five elements) to the S-CSCF. The S-CSCF sends a 401 status code to the I-CSCF: RAND, AUTH, CK, IK (S106). The I-CSCF sends a 401 status code to the P-CSCF: RAND, AUTH, CK, IK (S107). The P-CSCF sends a 401 status code to the UE: RAND, AUTH (S108). The UE sends a Register request to the P-CSCF. Response registration response (S109), P-CSCF sends Register Response to I-CSCF (S110), requests allocation of S-CSCF (S111), allocates S-CSCF (S112), I-CSCF sends Register to S-CSCF (S113), S-CSCF sends 200OK status code to I-CSCF (S114), I-CSCF sends 200OK status code to P-CSCF (S115), and P-CSCF sends 200OK status code to UE (S116).

[0061] Those skilled in the art will know that Figure 1 The number of UEs, P-CSCFs, I-CSCFs, S-CSCFs and HSSs in the example are only illustrative, and any number of terminal devices, networks and servers may be provided according to actual needs, which is not limited in the embodiments of the present disclosure.

[0062] Figure 2 A flow chart of a method for controlling the user logout state in an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the method for controlling the user logout status provided in the embodiment of the present disclosure includes the following steps:

[0063] S202: construct a mapping relationship according to a registration request message of the user terminal, wherein the mapping relationship is used to represent a corresponding relationship between the connection information of the link and the IP Multimedia Public Identity IMPU of the user terminal.

[0064] It should be noted that the above message can be a 5G message, which is a basic telecommunications service of the operator. It realizes a leap in business experience based on IP technology, supports more media formats and richer forms of expression. When facing individual users, 5G messages provide point-to-point messages and group chat services. In addition to text, the message content can also support multiple forms such as pictures, audio, video, location, contacts, etc. Users do not need to download the client or add friends to send and receive 5G messages from other mobile phone users, realizing "message as a service". The above link can be a wireless communication link, a path space for propagating electromagnetic waves between a base station and a terminal, such as a communication line between a UE and a CSCF. The above user terminal can be a client, such as a mobile client, such as a mobile client. The above connection information can be link Conn_ID number information. The above mapping relationship can be a mapping relationship established between Conn_ID and IMPU. The above mapping relationship can be a mapping relationship constructed in the form of (key, value) using Conn_ID as the key and IMPU as the value.

[0065] S204, when a deregistration request for a message from a user terminal is received on the link, the message is deregistered, and the mapping relationship is deleted through the connection information on the link.

[0066] S206: Send a deregistration notification to the subscriber of the message of the user terminal.

[0067] It should be noted that the above subscribers may be third-party devices or third-party registrations.

[0068] The present disclosure establishes a mapping relationship between the connection information of the link and the IMPU of the user terminal. When the CSCF obtains the message deregistration request, it deletes the mapping relationship and initiates a deregistration notification to the 5G message subscriber of the user, thereby solving the problem of inconsistency between the user status of the user data center and the actual terminal due to network interruption.

[0069] In one embodiment of the present disclosure, Figure 3 As shown, the method for controlling the user logout state provided in the embodiment of the present disclosure can construct a mapping relationship through the following steps before constructing a mapping relationship according to the registration request of the message of the user terminal, so as to combine the connection information with the IMPU:

[0070] S302, obtaining a registration request, and determining connection information of the link according to the registration request;

[0071] S304: Send a response message to the user terminal, where the response message carries the IMPU of the user terminal.

[0072] In one embodiment of the present disclosure, Figure 4As shown, the method for controlling the user logout status provided in the embodiment of the present disclosure can delete the mapping relationship through the following steps before sending a logout notification to the subscriber of the message of the user terminal, so that the user data center can be kept consistent with the user status of the actual terminal:

[0073] S402, determining whether there is a mapping relationship corresponding to the connection information;

[0074] S404: If yes, delete the mapping relationship corresponding to the connection information.

[0075] In one embodiment of the present disclosure, after constructing a mapping relationship according to a registration request of a message of a user terminal, the method further includes: storing the mapping relationship in a data block, wherein one mapping relationship corresponds to one user terminal.

[0076] It should be noted that the above data block may be a database, for example, the mapping relationship is stored in the database.

[0077] In one embodiment of the present disclosure, Figure 5 As shown, the method for controlling the user logout status provided in the embodiment of the present disclosure can store the mapping relationship of each user terminal according to the processing priority through the following steps, so as to ensure that the user data center is consistent with the user status of the actual terminal and provide targeted services according to the user attributes:

[0078] S502, determining a user attribute of each user terminal according to the IMPU of each user terminal;

[0079] S504, determining the processing priority of each user terminal according to the user attributes;

[0080] S506, determining the storage order and storage location of the mapping relationship of each user terminal according to the processing priority;

[0081] S508: Store the mapping relationship of each user terminal according to the corresponding storage order and storage position.

[0082] It should be noted that, when there are multiple user terminals registered, the mapping relationships of the multiple user terminals are constructed as a mapping relationship table, and the mapping relationship table may include multiple entries (entry information).

[0083] In one embodiment of the present disclosure, when logout requests for messages from multiple user terminals are obtained, the method for controlling the user logout status also includes: determining the user attributes of each user terminal based on the IMPU of each user terminal; determining the processing priority of each user terminal based on the user attributes; determining the deletion order of the mapping relationship of each user terminal based on the processing priority; and deleting the mapping relationship of each user terminal in accordance with the corresponding deletion order.

[0084] It should be noted that when a mapping relationship is deleted, the mapping relationship constructed in the form of (key, value) may be deleted; or an item of information corresponding to the connection information may be deleted.

[0085] In one embodiment of the present disclosure, user attributes include one or more of ordinary users, VIP users, corporate users and special users; according to the user attributes, the processing priority is determined; according to the processing priority, the storage order and storage location of the mapping relationship of the user terminal are determined, including: when the user attribute is a VIP user, a corporate user or a special user, the processing priority is determined to be the first priority; the mapping relationship of the user terminal of the VIP user, the corporate user or the special user is stored in the first storage block; when the user attribute is an ordinary user, the processing priority is determined to be the second priority; the mapping relationship of the user terminal of the ordinary user is stored in the second storage block; wherein the storage order of the first priority is before the storage order of the second priority.

[0086] It should be noted that the first storage block may be a regional location in a database, and the second storage block may be another regional location in the database different from the first storage block; the first storage block may be a first database, and the second storage block may be a second database, the first database is different from the second database, and the two are different database addresses.

[0087] In one embodiment of the present disclosure, the storage order and storage location of the mapping relationship of each user terminal are determined according to the processing priority, including: when the user attribute is a VIP user, an enterprise user or a special user, the priority score is determined according to the expiration time information and activity level information of the user terminal in the service; according to the priority score, the storage / deletion order of the mapping relationship of the user terminal is determined.

[0088] In one embodiment of the present disclosure, the activity level information includes: setting a statistical time interval; within the time interval, counting the number of IMPUs carried in the authentication request information; determining a frequency value based on the number of IMPUs carried in the authentication request information; and determining the activity level information based on the frequency value and a preset coefficient.

[0089] In one embodiment of the present disclosure, the specific steps of the workflow on the P-CSCF include:

[0090] When a link is established between the terminal and the P-CSCF, a link number Conn_ID is established for the link. When the terminal initiates a message registration request, the P-CSCF records the Conn_ID information corresponding to the message registration request when the message registration request is received.

[0091] Receive the response message from the platform of the above registered user. If the response message type is 200ok, and the AVP attribute P-Associated-URI in this response carries the user IMPU information, extract the IMPU information from the message body. Then establish the mapping relationship between Conn_ID and IMPU saved in step 1, and store this mapping entry in the storage system. If the AVP attribute P-Associated-URI in this response does not exist, it means that this response message is a response message of successful deregistration, and the entry corresponding to Conn_ID in the storage system is deleted.

[0092] When the link status (broken link, timeout, etc.) between the terminal and the P-CSCF changes, the storage system is searched for corresponding entry information according to the Conn_ID of this link. If not, it means that the user of this terminal has successfully logged out normally, and this state change is ignored. If there is a storage entry corresponding to this Conn_ID in the storage system, it means that the 5G message of the user of this terminal has not been successfully logged out normally, and the entry information is taken out and stored in the state storage event storage device.

[0093] The state event processor monitors the event storage device in real time, at a fixed time, or by notification, and determines whether there are entries to be processed in the corresponding event cache device. If so, the information corresponding to the Conn_ID (including Conn_ID and IMPU) is sent to the deregistration event processing device on the S-CSCF, wherein the S-CSCF deregistration event processing device first determines the user attributes of the user (VIP users, enterprise exclusive users, special user groups, ordinary users, relatively active users, etc.) through the IMPU information after receiving the information of the user to be deregistered, and adopts different processing methods for different user groups according to different user priority levels, and divides users with higher level attributes. Because some users have higher requirements for the quality of service, the expiration time of different users in the system is also different. For users with higher service quality requirements and longer expiration time, a higher priority processing capability can be appropriately used to give priority to them, while for some user groups with lower priority, some delayed processing can be appropriately used.

[0094] For VIP users and other users with higher priority, in order to ensure the service quality of 5G messages and improve user experience perception, real-time dedicated monitoring is adopted for the logout events of these users, so as to achieve the purpose of immediate processing.

[0095] In one embodiment of the present disclosure, the process of establishing the relationship between Conn_ID and IMPU on P-CSCF is as follows: Figure 6 As shown, the following steps are included:

[0096] S601: The 5G message terminal user accesses the P-CSCF, creates a link number Conn_ID, and stores a record;

[0097] S602: The 5G message terminal user sends a registration message to the P-CSCF to obtain the Conn_ID of the link corresponding to the registration request message;

[0098] S603: Determine whether the P-Associated-URI attribute tag in the AVP of the 200ok response message of the terminal registration received by the P-CSCF contains the IMPU. If so, jump to S604; if not, jump to S605.

[0099] S604: extract the impu and establish a binding relationship between the terminal link Conn_ID and the IMPU, and store it in the storage system, and jump to S606;

[0100] S605: This response message is a 200 ok response message indicating successful deregistration. The corresponding Conn_ID and IMPU entries in the storage system are deleted according to the corresponding Conn_ID value.

[0101] S606: Forward the response message upward.

[0102] In one embodiment of the present disclosure, the link status detection process on the P-CSCF is as follows: Figure 7 As shown, the following steps are included:

[0103] S701: When the link status (Close, Rst, Timeout, etc.) between the 5G message terminal user and the P-CSCF changes, the link information of the link is pushed to the link status event processing device corresponding to the P-CSCF according to the status type;

[0104] S702: Determine whether the link status event processor searches the link information storage system for storage entries of the Conn_ID and the corresponding IMPU according to the Conn_ID information in the link status event processing device. If yes, jump to S703; if not, jump to S705;

[0105] S703: The 5G message user corresponding to the terminal fails to log out successfully;

[0106] S704: Push the corresponding Conn_ID and IMPU information to the corresponding level processing storage device on the S-CSCF, and end the process;

[0107] S705: The 5G message user corresponding to this terminal has been successfully logged out, and the process ends.

[0108] In one embodiment of the present disclosure, the link status event processing flow on the P-CSCF is as follows: Figure 8 As shown, the following steps are included:

[0109] S801: construct an independent processor for each state event storage device, responsible for monitoring and processing the entries in the storage device;

[0110] S802: The processor determines whether there is an entry to be processed in the corresponding storage device. If yes, jump to S803; if not, jump to S801;

[0111] S803: Extract all entry information in sequence, and pass the corresponding Conn_ID and IMPU content to the S-CSCF event receiving device.

[0112] In one example, the specific steps of the workflow on the S-CSCF are as follows:

[0113] Receive the event processing message pushed from the P-CSCF, extract the corresponding user identification information (IMPU as user identification) carried in the message body, and judge the processing level based on user attributes and active status through IMPU. If this user is a special service user group with a relatively high priority (VIP user, enterprise exclusive user, special service group, etc.), then this part of the user information is stored in a high-level user-exclusive storage device processing device, and the access order is calculated according to the user's expiration time, activity level, etc. A priority score is calculated. The higher the score, the higher the priority. The user with a higher score is processed with a higher priority. If this user is a group of ordinary users, the information that needs to be stored in the storage device is calculated based on the Conn_ID information carried and the number of access devices N. The calculation method is Conn_ID / N. When storing, first obtain the user's level score based on the user's expiration time and activity level. The level score calculation method is as follows: Formula (1):

[0114] score=α×exp+β×V, α+β=1; (1)

[0115] Among them, score is the grade score, α and β are the weight coefficients of the expiration time interval and the weight coefficient of the user's active level respectively, exp is the expiration time interval, V is the calculated active frequency of the 5G message user (equivalent to the above frequency value), α×exp is equivalent to the above expiration time information, β=V is equivalent to the above activity level information, and its calculation and statistical methods are as follows:

[0116] In the authentication request process of 5G messages, the authentication frequency (activity) collection module has the main function of collecting and counting the frequency of authentication of the user within a certain period of time T (it can also be filtered by other conditions). Because after a certain amount of message interaction between 5G message users, 5G message users need to re-authenticate in the system, so this statistical frequency can be used as a statistical indicator of the frequency of information exchange of 5G message users. Let the frequency value of this statistic be V.

[0117] In one embodiment of the present disclosure, the process of receiving and processing the event message from the P-CSCF on the S-CSCF is as follows: Fig. 9 As shown, the following steps are included:

[0118] S901: receiving an event processing message from the P-CSCF;

[0119] S902: extract the IMPU information in the message body to determine whether the user attribute is (VIP user, enterprise user, special service group, etc.), if so, jump to S903, if not, jump to S905;

[0120] S903: Calculate the rating score based on the user's expiration time, message interaction frequency and other information;

[0121] S904: storing the information contents such as the IMPU and the grade score corresponding to the user in the VIP user exclusive storage device according to the grade score order, and ending the process;

[0122] S905: According to conn_id and the number N of common user information storage devices, obtain the index of the storage device by Conn_ID / N;

[0123] S906: Calculate the rating score based on the user's expiration time, message interaction frequency and other information;

[0124] S907: The information contents such as the IMPU corresponding to the user, the grade score Score value, etc. are stored in the storage device corresponding to the Index according to the order of the grade score, and the process ends.

[0125] In one embodiment of the present disclosure, the process of constructing the active deregistration message on the S-CSCF is as follows: Fig.10 As shown, the following steps are included:

[0126] S1001: constructing an independent processor in each user processing device to be deregistered;

[0127] S1002: The processor detects whether there is an entry to be processed in the corresponding storage device, if so, jumps to S1003, if not, jumps to S1001;

[0128] S1003: extracting IMPU information in each entry according to the priority order to be processed, and constructing a message deregistration request message corresponding to the user;

[0129] S1004: Send the constructed message cancellation request information to each subscriber, and delete the corresponding record in the storage device.

[0130] In one embodiment of the present disclosure, the message interaction frequency collection and calculation process is as follows: Fig.11 As shown, the following steps are included:

[0131] S1101: Setting a statistical time interval reference value T;

[0132] S1102: extract the IMSI or IMPU data in the authentication request message, and if it is IMSI data, find the corresponding IMPU data, and determine whether the corresponding IMPU information already exists in the storage device. If so, jump to S1103, if not, jump to S1106;

[0133] S1103: Add 1 to the corresponding IMPU statistics value;

[0134] S1104: Determine whether the set target time interval T has been reached;

[0135] S1105: Calculate the topN sets in the data set within the time interval T, and output the frequency value V corresponding to each entry;

[0136] S1106: directly store the IMPU information in the storage device, and set the statistical number of this entry to 1, and jump to S1104.

[0137] In a specific embodiment, a specific example of the message interaction frequency collection and calculation process steps are as follows:

[0138] The first step: Set the time interval for each statistics to be T.

[0139] The second step: when a terminal user needs to perform authentication, the IMSI or IMPU data carried in the request information is collected (there is a one-to-one correspondence between IMSI and IMPU). If the extracted data is IMSI information, the corresponding IMPU information is found according to the IMSI information, and then the collected data is stored in the storage device and its quantity is counted in real time. If the same data has been saved in the storage device, the corresponding statistical number of the data is increased by 1. If the data does not exist in the storage device, the data will be stored in the storage device as a new data entry, and the statistical number of the data is set to 1.

[0140] Step 3: Repeat step 2 until the set time interval T is reached, calculate the topN (first N) data sets corresponding to the current (IMSI or IMPU) number, where the number corresponding to each data is used as the frequency V of the data, and output as the result. Then, the access order of the user in the storage device is determined according to the level score. The higher the level score, the more urgent the user is for the deregistration process, and the deregistration event of the user needs to be handled first.

[0141] Step 4: The processing device corresponding to each user information storage device to be deregistered will monitor the status in the storage device in real time. If it is detected that there is information to be processed in the storage device, the corresponding IMPU information will be extracted in sequence according to the deregistration processing priority level assigned in the device, and then a deregistration notification will be sent to all corresponding subscribers of the user's 5G message based on the IMPU information.

[0142] The present disclosure constructs a monitoring device for the link status between the terminal and the P-CSCF on the P-CSCF, and according to the one-to-one correspondence between the link between the terminal user and the P-CSCF, according to the characteristics of the message interaction of the 5G message user in the registration process and the message content in the registration and deregistration interaction process, the mapping relationship between the link Conn_ID and the corresponding IMPU of the terminal can be obtained from the registration interaction data of this link, and the corresponding relationship is stored in the storage system of the mapping relationship between Conn_ID and IMPU. When the status monitoring device finds that the terminal link status has changed, it will first determine whether this event needs to continue to be triggered to the back end. If it is necessary to continue to process this event accordingly, then this event will be passed to the corresponding event status processing device, and the event status processing device will forward it to the S-CSCF according to the set rules, and the deregistration operation will be performed on the terminal user on the S-CSCF. The S-CSCF receives the relevant information of the user to be deregistered from the P-CSCF, and first determines the user attributes (VIP user, enterprise user, special service group, etc.) of the user based on the IMPU information. The storage device to which the user information needs to be stored is determined based on the different user attributes. For (VIP user, enterprise user, special service group, etc.), the corresponding dedicated storage device is allocated and stored. For the ordinary user group, the corresponding storage device is determined based on the obtained Conn_ID information. In the process of storing the user information in the storage device, a processing priority level score is obtained based on the expiration time interval exp of the user in the service, the activity level in the recent period, and other information. Then, the storage order and position of the corresponding user information in the storage device are determined based on this score. The processing priority can be that for users with a higher calculated processing priority (i.e., a higher score level), it is necessary to place them in a priority processing position, so that for those with a higher deregistration priority, the message deregistration request will be sent first. Thus, on the one hand, it solves the problem in the existing system that the normal 5G message deregistration process is not completed when the terminal is suddenly disconnected or other network anomalies occur, and the user center terminal status is inconsistent with the user center terminal 5G message user status. It can also basically guarantee the ability to process all event states when users do not perform normal deregistration in batches under DC switching and other circumstances. On the other hand, it can also extract the priority order of users in the current state to complete 5G message deregistration according to the defined priority rating rules, and finally realize the execution of the user's deregistration process and order according to the user's deregistration priority, which improves the user experience and realizes the reliability of users completing normal deregistration.

[0143] The present disclosure can be applied to the 5G messaging platform, can enhance the user experience of 5G messaging users, and improve the robustness and stability of the 5G messaging platform system.

[0144] Based on the same inventive concept, the present disclosure also provides a device for controlling the user logout state, as described in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0145] Fig.12 A schematic diagram of a device for controlling the user logout state in an embodiment of the present disclosure is shown. Fig.12 As shown, the device includes: a mapping relationship building module 1201, a mapping relationship deleting module 1202, a deregistration notification sending module 1203, a judgment module 1204, a storage module 1205 and a priority processing module 1206.

[0146] A mapping relationship building module 1201 is used to build a mapping relationship according to a registration request of a message of a user terminal, wherein the mapping relationship is used to characterize the correspondence between the connection information of the link and the IP multimedia public identity IMPU of the user terminal;

[0147] A mapping relationship deletion module 1202 is used to, when receiving a deregistration request of a message from a user terminal on a link, deregister the message and delete the mapping relationship through the connection information on the link;

[0148] The deregistration notification sending module 1203 is used to send a deregistration notification to the subscriber of the message of the user terminal.

[0149] In one embodiment of the present disclosure, the mapping relationship building module 1201 is further used to: obtain a registration request, determine the connection information of the link according to the registration request; and send a response message to the user terminal, wherein the response message carries the IMPU of the user terminal.

[0150] In one embodiment of the present disclosure, the apparatus for controlling the user logout status further includes a determination module 1204 for determining whether a mapping relationship corresponding to the connection information exists; if so, deleting the mapping relationship corresponding to the connection information.

[0151] In one embodiment of the present disclosure, the apparatus for controlling the user logout status further includes a storage module 1205, which is used to: store the mapping relationship into a data block, wherein one mapping relationship corresponds to one user terminal.

[0152] In one embodiment of the present disclosure, the above-mentioned device for controlling the user logout status also includes a priority processing module 1206, which is used to: determine the user attributes of each user terminal according to the IMPU of each user terminal; determine the processing priority of each user terminal according to the user attributes; determine the storage order and storage location of the mapping relationship of each user terminal according to the processing priority; store the mapping relationship of each user terminal according to the corresponding storage order and storage location.

[0153] In one embodiment of the present disclosure, the above-mentioned priority processing module 1206 is also used to: determine the user attributes of each user terminal according to the IMPU of each user terminal; determine the processing priority of each user terminal according to the user attributes; determine the deletion order of the mapping relationship of each user terminal according to the processing priority; and delete the mapping relationship of each user terminal according to the corresponding deletion order.

[0154] In one embodiment of the present disclosure, the user attributes in the above-mentioned device for controlling the user logout status include one or more of ordinary users, VIP users, corporate users and special users; according to the user attributes, the processing priority is determined; according to the processing priority, the storage order and storage location of the mapping relationship of the user terminal are determined, including: when the user attribute is a VIP user, a corporate user or a special user, the processing priority is determined to be the first priority; the mapping relationship of the user terminal of the VIP user, the corporate user or the special user is stored in the first storage block; when the user attribute is an ordinary user, the processing priority is determined to be the second priority; the mapping relationship of the user terminal of the ordinary user is stored in the second storage block; wherein the storage order of the first priority is before the storage order of the second priority.

[0155] In one embodiment of the present disclosure, the above-mentioned priority processing module 1206 is also used to: when the user attribute is a VIP user, an enterprise user or a special user, determine the priority score according to the expiration time information and activity level information of the user terminal in the service; and determine the storage / deletion order of the mapping relationship of the user terminal according to the priority score.

[0156] In one embodiment of the present disclosure, the activity level information in the above-mentioned device for controlling the user logout status includes: setting a statistical time interval; within the time interval, counting the number of IMPUs carried in the authentication request information; determining a frequency value based on the number of IMPUs carried in the authentication request information; and determining the activity level information based on the frequency value and a preset coefficient.

[0157] It should be noted that the mapping relationship building module 1201, the mapping relationship deletion module 1202 and the cancellation notification sending module 1203 correspond to S202 to S206 in the method embodiment, and the examples and application scenarios implemented by the above modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above method embodiment. It should be noted that the above modules as part of the device can be executed in a computer system such as a set of computer executable instructions.

[0158] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0159] Refer to the following Fig.13 1300 according to this embodiment of the present disclosure is described. Fig.13 The electronic device 1300 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0160] like Fig.13 As shown, the electronic device 1300 is in the form of a general computing device. The components of the electronic device 1300 may include but are not limited to: at least one processing unit 1310, at least one storage unit 1320, and a bus 1330 connecting different system components (including the storage unit 1320 and the processing unit 1310).

[0161] The storage unit stores program codes, which can be executed by the processing unit 1310, so that the processing unit 1310 executes the steps described in the above “Exemplary Method” section of this specification according to various exemplary embodiments of the present disclosure.

[0162] For example, the processing unit 1310 can execute the following steps of the above-mentioned method embodiment: construct a mapping relationship based on the registration request of the message of the user terminal, wherein the mapping relationship is used to characterize the correspondence between the connection information of the link and the IP multimedia public identification IMPU of the user terminal; when a deregistration request for the message of the user terminal is received on the link, the message is deregistered and the mapping relationship is deleted through the connection information on the link; and a deregistration notification is sent to the subscriber of the message of the user terminal.

[0163] The storage unit 1320 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 13201 and / or a cache storage unit 13202 , and may further include a read-only storage unit (ROM) 13203 .

[0164] The storage unit 1320 may also include a program / utility 13204 having a set (at least one) of program modules 13205, such program modules 13205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0165] Bus 1330 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0166] The electronic device 1300 may also communicate with one or more external devices 1340 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1300, and / or communicate with any device that enables the electronic device 1300 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1350. Furthermore, the electronic device 1300 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1360. As shown, the network adapter 1360 communicates with other modules of the electronic device 1300 via a bus 1330. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0167] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0168] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer program product, which includes: a computer program, which implements the above method for controlling the user logout status when executed by a processor.

[0169] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the above method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.

[0170] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0171] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0172] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0173] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0174] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0175] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0176] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0177] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

Claims

1. A method for controlling a user's logout status, characterized in that: Applicable to call session control function network elements, including: Constructing a mapping relationship according to a registration request of a message of a user terminal, wherein the mapping relationship is used to characterize a correspondence between connection information of a link and an IP multimedia public identity IMPU of the user terminal; When receiving a deregistration request for a message from a user terminal on the link, deregister the message and delete the mapping relationship through the connection information on the link; Send a deregistration notification to a subscriber of the message of the user terminal.

2. The method for controlling the user logout status according to claim 1, characterized in that: Before building a mapping relationship according to the registration request of the message of the user terminal, the method further includes: Obtaining the registration request, and determining connection information of the link according to the registration request; A response message is sent to the user terminal, wherein the response message carries the IMPU of the user terminal.

3. The method for controlling the user logout status according to claim 1, characterized in that: Before sending a cancellation notification to a subscriber of the message of the user terminal, the method further includes: Determine whether there is a mapping relationship corresponding to the connection information; If so, delete the mapping relationship corresponding to the connection information.

4. The method for controlling the user logout status according to claim 1, characterized in that: After the mapping relationship is established according to the registration request of the message of the user terminal, the method further includes: The mapping relationship is stored in a data block, wherein one mapping relationship corresponds to one user terminal.

5. The method for controlling the user logout status according to claim 4, characterized in that: When registration requests of messages of multiple user terminals are obtained, storing the mapping relationship in a data block includes: Determine a user attribute of each user terminal according to the IMPU of each user terminal; Determining a processing priority for each user terminal according to the user attributes; Determining the storage order and storage location of the mapping relationship of each user terminal according to the processing priority; The mapping relationship of each user terminal is stored in a corresponding storage order and storage position.

6. The method for controlling the user logout status according to claim 4, characterized in that: When a deregistration request for messages of multiple user terminals is obtained, the method further includes: Determine a user attribute of each user terminal according to the IMPU of each user terminal; Determining a processing priority for each user terminal according to the user attributes; Determining the order of deleting the mapping relationship of each user terminal according to the processing priority; The mapping relationship of each user terminal is deleted according to the corresponding deletion order.

7. The method for controlling the user logout status according to claim 5, characterized in that: The user attributes include one or more of ordinary users, VIP users, enterprise users and special users; Determining a processing priority according to the user attributes; Determining the storage order and storage location of the mapping relationship of the user terminal according to the processing priority includes: When the user attribute is a VIP user, enterprise user or special user, the processing priority is determined to be the first priority; Storing the mapping relationship of the user terminals of the VIP user, the enterprise user or the special user in the first storage block; When the user attribute is a common user, the processing priority is determined to be the second priority; Storing the mapping relationship of the user terminal of the common user in the second storage block; The storage order of the first priority is before the storage order of the second priority.

8. The method for controlling the user logout status according to claim 5, characterized in that: Determining the storage order and storage location of the mapping relationship of each user terminal according to the processing priority includes: When the user attribute is a VIP user, enterprise user or special user, the priority score is determined according to the expiration time information and activity level information of the user terminal in the service; According to the priority score, a storage / deletion order of the mapping relationship of the user terminal is determined.

9. The method for controlling the user logout status according to claim 8, characterized in that: The activity level information includes: Set the statistical time interval; Within a time interval, count the number of IMPUs carried in the authentication request information; Determine the frequency value according to the number of IMPUs carried in the authentication request information; The activity level information is determined according to the frequency value and the preset coefficient.

10. A device for controlling the logout status of a user, characterized in that: include: A mapping relationship building module, used to build a mapping relationship according to a registration request of a message of a user terminal, wherein the mapping relationship is used to characterize the corresponding relationship between the connection information of the link and the IP multimedia public identity IMPU of the user terminal; A mapping relationship deletion module, configured to, when receiving a deregistration request for a message from a user terminal on a link, deregister the message and delete the mapping relationship through connection information on the link; The deregistration notification sending module is used to send a deregistration notification to the subscriber of the message of the user terminal.

11. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the method for controlling a user logout status as described in any one of claims 1 to 9 by executing the executable instructions.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for controlling the user logout status as described in any one of claims 1 to 9 is implemented.