CN115361448A - Data processing method, HSS, electronic device and computer storage medium - Google Patents
Data processing method, HSS, electronic device and computer storage medium Download PDFInfo
- Publication number
- CN115361448A CN115361448A CN202211278472.4A CN202211278472A CN115361448A CN 115361448 A CN115361448 A CN 115361448A CN 202211278472 A CN202211278472 A CN 202211278472A CN 115361448 A CN115361448 A CN 115361448A
- Authority
- CN
- China
- Prior art keywords
- request
- cache
- data
- data acquisition
- acquisition request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 22
- 230000004044 response Effects 0.000 claims abstract description 86
- 238000000034 method Methods 0.000 claims abstract description 44
- 230000008569 process Effects 0.000 claims abstract description 18
- 238000012545 processing Methods 0.000 claims abstract description 13
- 230000006870 function Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 3
- 230000005641 tunneling Effects 0.000 claims description 3
- 239000008186 active pharmaceutical agent Substances 0.000 claims 5
- 238000013475 authorization Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 239000000872 buffer Substances 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W60/00—Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides a data processing method, which is applied to HSS and comprises the following steps: under the condition that the currently received data acquisition request is determined to be not received for the first time, acquiring response data corresponding to the data acquisition request from a pre-opened cache; the data acquisition request is sent to the HSS by the network equipment according to a user request sent by the user equipment; and returning the response data to the network equipment so that the network equipment can process the user request according to the response data. The processing load of the HSS is reduced, the smoothness of responding to the user request is improved, and the speed of responding to the user request is improved. The invention also provides the HSS, the electronic equipment and the computer storage medium.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data processing method, an HSS, an electronic device, and a computer storage medium.
Background
IMS (IP Multimedia Subsystem) is a network architecture that provides voice and Multimedia services over IP networks. The IMS can implement the convergence of internet services with fixed user services, mobile user services with convergence, and multimedia services such as voice, data, and video, and is a core technology of the next generation of networks. The HSS (Home Subscriber Server) is a core database in the IMS network, and is responsible for storing user data and service data, and supporting functions of IMS service access authentication, roaming registration, and mobile called routing and addressing, and also may provide information required for selecting an S-CSCF (Serving Call Session Control Function) for an I-CSCF (calling Session Control Function entity), and provide subscription data support for interaction with an AS (active access stratum).
With the increase of the number of users in the IMS network and the development of platform services, the amount of data stored in the HSS is larger and larger, and the data in the HSS is frequently operated, especially the data which changes infrequently and has a relatively large access amount, so that the HSS has the problems of large load pressure, low response speed, and the like.
Disclosure of Invention
In view of the above-mentioned shortcomings in the prior art, the present invention provides a data processing method, an HSS, an electronic device, and a computer storage medium.
In a first aspect, an embodiment of the present invention provides a data processing method applied to an HSS, where the method includes:
under the condition that the currently received data acquisition request is determined to be not received for the first time, acquiring response data corresponding to the data acquisition request from a pre-opened cache; the data acquisition request is sent to the HSS by the network equipment according to a user request sent by the user equipment;
and returning the response data to the network equipment so that the network equipment can process the user request according to the response data.
In some embodiments, before said returning said response data to said network device, said method further comprises:
under the condition that the currently received data acquisition request is determined to be received for the first time, determining response data corresponding to the data acquisition request;
and storing the determined response data into the pre-opened cache.
In some embodiments, the cache is opened from a memory according to a YML configuration file, the cache is multiple, and the obtaining response data corresponding to the data obtaining request from the cache opened in advance includes:
determining a cache corresponding to the data acquisition request;
and acquiring the response data from the cache corresponding to the data acquisition request.
In some embodiments, different data fetch requests call different local APIs, and after tunneling the cache, the method further comprises:
respectively establishing a storage key for each cache;
generating a one-to-one correspondence between the parameter information of the API and the cache;
the determining the cache corresponding to the data obtaining request includes: and determining the cache corresponding to the data acquisition request according to the local API called by the data acquisition request and the corresponding relation.
In some embodiments, after receiving the data acquisition request, the method further comprises:
creating a client structure;
analyzing the data acquisition request to acquire request parameters;
storing the request parameters to a parameter list of the client structure;
extracting command parameters from a parameter list of the client structure;
and determining a local API called by the data acquisition request according to a command protocol and the command parameters.
In some embodiments, after the retrieving the response data from the cache corresponding to the data retrieval request, the method further includes:
and deleting the client structure.
In some embodiments, said storing the determined response data into the pre-opened cache comprises:
and storing the determined response data into a corresponding cache according to the local API called by the data acquisition request and the corresponding relation.
In some embodiments, the user request is any one of a registration request, an authentication request, a location query request and a deregistration request, and the data acquisition request is one of a user authorization request UAR and a multimedia authentication request MAR.
In some embodiments, the network device includes at least a call session control function entity, I-CSCF, and a serving session control function entity, S-CSCF.
In a second aspect, an embodiment of the present invention provides an HSS, where the HSS includes a cache, a receiving module, a processing module, and a sending module;
the receiving module is used for receiving a data acquisition request;
the processing module is used for acquiring response data corresponding to the data acquisition request from the pre-opened cache under the condition that the currently received data acquisition request is determined to be not received for the first time; the data acquisition request is sent to the HSS by the network equipment according to a user request sent by the user equipment;
the sending module is configured to return the response data to the network device, so that the network device processes the user request according to the response data.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data processing method as previously described.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, on which a computer program is stored, wherein the program, when executed, implements the data processing method as described above.
After the user equipment sends the user request, the network equipment sends a corresponding data acquisition request to the HSS, the HSS judges whether the data acquisition request is received for the first time, under the condition that the data acquisition request is determined to be received for the first time, as the HSS opens a cache in advance and response data corresponding to the data acquisition request is stored in the cache, the HSS can directly acquire the response data corresponding to the data acquisition request from the cache opened in advance and returns the response data to the network equipment, so that the network equipment processes the user request according to the response data, the phenomenon that relevant response data are determined by operating a local database, such as inquiring, modifying, deleting and the like of data in the database is avoided, the processing load of the HSS is reduced, the smoothness of responding the user request is increased, and the speed of responding the user request is improved.
Drawings
Fig. 1 is a first schematic flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a second flowchart illustrating a data processing method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart diagram of a data processing method according to an embodiment of the present invention;
FIG. 4 is a fourth schematic flowchart of a data processing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a data processing method provided by an embodiment of the invention;
fig. 6 is a schematic flowchart of UE registration in an IMS network according to an embodiment of the present invention;
fig. 7 is a block diagram of an HSS according to an embodiment of the present invention.
Detailed Description
Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but which may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," 8230; \8230 "; when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The embodiments described herein may be described with reference to plan and/or cross-sectional views in idealized form as illustrated by the present disclosure. Accordingly, the example illustrations can be modified in accordance with manufacturing techniques and/or tolerances. Accordingly, the embodiments are not limited to the embodiments shown in the drawings, but include modifications of configurations formed based on a manufacturing process. Thus, the regions illustrated in the figures have schematic properties, and the shapes of the regions shown in the figures illustrate specific shapes of regions of elements, but are not intended to be limiting.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present invention and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In order to improve the response speed of the HSS in the IMS network, an embodiment of the present invention provides that a cache may be created in the HSS in advance, response data obtained from the database is placed in the cache when the user equipment first initiates a user request, and relevant response data in the cache is directly returned when the user equipment subsequently initiates the same user request again, without operating the local database to determine the relevant response data.
Accordingly, as shown in fig. 1, an embodiment of the present invention provides a data processing method applied to an HSS, where the method includes the following steps:
in step S11, when it is determined that the currently received data acquisition request is not received for the first time, acquiring response data corresponding to the data acquisition request from a cache created in advance; the data acquisition request is sent to the HSS by the network equipment according to a user request sent by the user equipment;
in step S12, the response data is returned to the network device, so that the network device processes the user request according to the response data.
The user request may be sent to the current network device by the user equipment, or sent to other network devices by the user equipment, and only the other network devices request the current network device to perform further processing. The HSS includes at least a pre-provisioned cache and database.
After the user equipment sends a user request, the current network equipment sends a corresponding data acquisition request to the HSS to acquire user information related to the user equipment, the HSS can judge whether the data acquisition request is received for the first time, because the data acquisition request is sent to the HSS by the network equipment according to the user request sent by the user equipment, the data acquisition request is judged whether the user request is initiated by the user equipment for the first time or not, if the user equipment is initiated not for the first time, response data corresponding to the data acquisition request is acquired from a cache opened in advance so as to be returned to the network equipment, and the network equipment can process the user request.
It should be noted that after the user equipment sends the user request, the network equipment sometimes sends other types of requests to the HSS in addition to sending a corresponding data acquisition request to the HSS, which is not related to the embodiments of the present invention and therefore is not described in detail.
It can be seen from the foregoing steps S11-S12 that, after the user equipment sends the user request, the network equipment sends a corresponding data acquisition request to the HSS, and the HSS determines whether the data acquisition request is received non-first time, and when it is determined that the data acquisition request is received non-first time, because the HSS creates a cache in advance and response data corresponding to the data acquisition request is stored in the cache, the HSS can directly acquire the response data corresponding to the data acquisition request from the cache created in advance, and return the response data to the network equipment, so that the network equipment processes the user request according to the response data, thereby avoiding determining related response data by operating a local database, for example, performing operations such as query, modification, and deletion on data in the database, reducing a processing load of the HSS, increasing smoothness of responding to the user request, and improving a speed of responding to the user request.
If the currently received data acquisition request is determined to be received for the first time, it is indicated that the user request of this time is initiated by the user equipment for the first time, the relevant response data is not stored in the cache, and the HSS still needs to determine the relevant response data.
Accordingly, in some embodiments, as shown in fig. 2, before the returning the response data to the network device (i.e., step S12), the method may further include the following steps:
in step S10', when it is determined that the currently received data acquisition request is received for the first time, determining response data corresponding to the data acquisition request;
in step S11', the determined response data is stored in the pre-opened buffer.
In some embodiments, the step of storing the determined response data in the pre-opened cache (i.e. step S11') may include the steps of: and under the condition that the state code carried in the determined response data meets a preset condition, storing the determined response data into the pre-opened cache.
As a specific implementation manner, the determining that the status code carried in the response data satisfies the preset condition may include: and the value of the state code carried in the determined response data is less than 400. For example, httpStatusCode <400.
If the value of the status code carried in the response data is greater than or equal to 400, it indicates that the data acquisition request is in error, and if the value of the status code carried in the response data is less than 400, it indicates that at least the data acquisition request is successful. That is, if the value of the status code carried in the response data is greater than or equal to 400, the response data only serves to notify the network device that the request is in error, and at this time, the response data does not carry the user information, and it is meaningless to store the response data.
With the increase of the number of users in the IMS network and the development of platform services, the amount of data stored in the HSS is increasing, and in order to further reduce the processing load of the HSS and increase the response speed, the HSS may also create a plurality of caches in advance, each of which is used to store response data corresponding to a different data acquisition request.
Accordingly, in some embodiments, the cache is opened from the memory according to the YML configuration file, the number of the caches is multiple, as shown in fig. 3, and the step of obtaining the response data corresponding to the data obtaining request from the cache opened in advance (i.e., the step S11) may include the following steps:
in step S111, determining a cache corresponding to the data acquisition request;
in step S112, the response data is acquired from the cache corresponding to the data acquisition request.
Wherein, some important parameters are recorded in the YML configuration file, and the HSS can set a cache basic function, a port and the like in advance according to the parameters in the YML configuration file, and open a section of space from the local storage as a cache. The cache opened up in advance by the HSS may include a plurality of caches each for storing different types of response data. When a data acquisition request is received, determining which cache stores response data corresponding to the data acquisition request, and then acquiring the response data from the determined cache.
For different data acquisition requests, different APIs (application program interfaces) are often required to be called so as to execute different instructions to acquire corresponding response data.
Accordingly, in some embodiments, different data fetch requests call different local APIs, as shown in fig. 4, and after tunneling the cache, the method may further include the steps of:
in step S21, a storage key is created for each cache;
in step S22, a one-to-one correspondence between the parameter information of the API and the cache is generated;
in step S23, the determining the cache corresponding to the data obtaining request includes: and determining the cache corresponding to the data acquisition request according to the local API called by the data acquisition request and the corresponding relation.
After setting a cache basic function, a port and the like in advance according to parameters in a YML configuration file and creating a section of space from a local storage as a cache, the HSS can also respectively create different storage keys for each cache in a program, bind a certain API and the storage key of a certain cache, generate a unique ID or value of the binding relationship, and store the corresponding relationship among the storage keys, the ID or value and the API parameters in the cache for the subsequent identification and reading of cache contents by the program.
In some embodiments, after receiving the data acquisition request, the method may further include the steps of: creating a client structure; analyzing the data acquisition request to acquire request parameters; storing the request parameters to a parameter list of the client structure; extracting command parameters from a parameter list of the client structure; and determining the local API called by the data acquisition request according to a command protocol and the command parameters.
When a socket (socket) corresponding to the monitoring port receives a connection request, a client structure is created, and the connection state is managed through the client structure. When a request enters, the request is read, buffered and analyzed, and then stored into a parameter list of the client. And then finding a corresponding Command according to the parameter list of the client, and finally further analyzing, verifying and executing the Command according to the Command protocol. The core processing thread for data reading and writing is a single thread model, and in order to keep the high performance of the whole system, the blocked operation caused by any thread must be avoided.
After the data acquisition request is parsed, the client structure may also be deleted to release the memory. Accordingly, in some embodiments, after the response data is obtained from the cache corresponding to the data obtaining request, the method may further include the following steps: and deleting the client structure.
As mentioned above, the HSS may pre-open a plurality of buffers for storing different types of response data. Accordingly, in some embodiments, the step of storing the determined response data in the pre-opened cache (i.e. step S11') may include the steps of: and storing the determined response data into a corresponding cache according to the local API called by the data acquisition request and the corresponding relation.
The HSS has more functions in the IMS network, which may include registration, authentication, deregistration, location query, and so on, and accordingly, in some embodiments, the user request is any one of a registration request, an authentication request, a location query request, and a deregistration request.
It should be noted that the embodiments of the present invention are not limited to the above-listed requests, and any request that needs to obtain the user information from the database of the HSS may be within the scope of the embodiments of the present invention.
The I-CSCF and S-CSCF are two network devices that often need to obtain user information to the HSS in order to handle user requests. Accordingly, in some embodiments, the network device may include at least a call session control function entity, I-CSCF, and a serving session control function entity, S-CSCF.
It should be noted that the embodiments of the present invention are not limited to the two network devices listed above, and any network device that needs to obtain the user information from the database of the HSS to process the user request may be within the scope of the embodiments of the present invention.
The principle of the data processing method provided by the embodiment of the present invention is briefly described below with reference to fig. 5.
As shown in fig. 5, which is a schematic diagram of a principle of a data processing method provided in an embodiment of the present invention, after a client (i.e., a user equipment) initiates a request, an HSS determines whether the request is sent by the client for the first time, substantially determines whether corresponding response data exists in a cache, if the corresponding response data exists in the cache, responds to the request of the client according to the cached data, and if the corresponding response data does not exist in the cache, starts a MySQL (relational database management system) function, performs operations such as query, modification, and deletion on data in a database, responds to the request of the client according to an operation result, and adds the response data to the cache.
The data processing method provided by the embodiment of the invention is described in detail below with reference to fig. 6 and a specific embodiment.
Taking the registration process of the User Equipment in the IMS Network as an example, the Visited Network includes the User Equipment (UE) and a P-CSCF, and the Home Network includes an I-CSCF, an HSS and an S-CSCF, as shown in fig. 6, the registration process may include the following steps (1) - (20).
Step (1), UE sends Register request message to P-CSCF of visiting network, starts the registration process for the first time. The Register request message includes a user identifier, a home network domain name, user information, session description information, and the like.
And (2) the P-CSCF processes the Register request message, uses the domain name of the home network in the Register request message to query the DNS to obtain an I-CSCF entry point in the home network, and forwards the Register request message to the I-CSCF.
Step (3), the I-CSCF sends a User Authorization Request (UAR) to the HSS, and after the HSS authenticates the identity and the service authority of the user equipment, the HSS indicates the I-CSCF because the UAR is judged to be sent for the first time: one S-CSCF is allocated to serve the UE according to the required S-CSCF capabilities and the available S-CSCFs. Meanwhile, the HSS determines the information of IMSU, IMPU, IMPI and the like, and respectively stores the information in corresponding caches, and the cache module of the HSS returns a ResultCode (2001) message to the HSS.
Wherein, at least before step (3), the HSS has previously opened up a cache.
And (4) the HSS sends UAA (user authorization response) to the I-CSCF, and the UAA carries the capability set corresponding to the IMSU.
And (5) after the I-CSCF adds the capability set corresponding to the IMSU in the Register request message, the I-CSCF forwards the Register request message to the allocated S-CSCF.
And (6) the S-CSCF sends a Multimedia Authentication Request (MAR) to the HSS, the MAR carries information such as an authentication scheme, the SIP authentication item number and the like, the HSS acquires IMPI from a pre-opened cache and assembles an authentication vector according to the acquired IMPI and the information carried by the MAR as the MAR is judged to be sent for the first time, the user state of the IMPU is set to be pending for authentication, then the IMPU in the cache is updated, the names of the S-CSCF in the database and the cache are updated, and a cache module of the HSS returns a ResultCode (2001) message to the HSS.
And (7) the HSS sends an MAA (multimedia authentication answer) to the S-CSCF, wherein the MAA carries authentication information.
Step (8) the S-CSCF returns a 401 (unauthorised) message to the I-CSCF.
Step (9), I-CSCF returns 401 (unauthorized) message to P-CSCF.
Step (10), P-CSCF returns 401 (unauthorized) message to UE.
Wherein a 401 (unauthorized) message is used to inform the UE to re-authenticate.
And step (11), the UE restarts the registration process by the Register request message sent to the P-CSCF of the visited network. The Register request message includes authentication information, a user identifier, a home network domain name, user information, session description information, and the like.
And (12) the P-CSCF processes the Register request message, uses the domain name of the home network in the Register request message to query the DNS to obtain an I-CSCF entry point in the home network, and forwards the Register request message to the I-CSCF.
And (13) the I-CSCF sends a User Authorization Request (UAR) to the HSS for the second time, and the HSS directly reads the IMSU in the cache to obtain the name of the S-CSCF because the UAR is judged to be not sent for the first time, and the cache module of the HSS returns a ResultCode (2002) message to the HSS.
And (14) the HSS sends the UAA carrying the authentication information to the I-CSCF, wherein the authentication information at least comprises the name of the S-CSCF allocated to the UE by the I-CSCF.
And step (15), the I-CSCF forwards the Register message to the designated S-CSCF according to the name of the S-CSCF returned by the UAA.
And step (16), the S-CSCF sends a Service Allocation Request (SAR) to the HSS after the authentication is passed, and the HSS sets the user state of the IMPU as the registered IMPU which is updated in the cache.
And (17) the S-CSCF downloads SAA (service allocation answer) from HSS, wherein the SAA carries the relevant information of the UE, such as subscription information, safety information and the like.
And (18) the S-CSCF completes Service Control and returns a 200 OK message (registration confirmation information) to the I-CSCF.
Step (19), I-CSCF returns 200 OK message (registration confirmation information) to P-CSCF.
And step (20), the P-CSCF returns a 200 OK message (registration confirmation information) to the UE, and the registration process is completed.
Based on the same technical concept, an embodiment of the present invention further provides an HSS, as shown in fig. 7, the HSS includes a receiving module 101, a processing module 102, a cache 103, and a sending module 104;
the receiving module 101 is configured to receive a data acquisition request;
the processing module 102 is configured to, when it is determined that the currently received data acquisition request is not received for the first time, acquire response data corresponding to the data acquisition request from the cache 103 which is created in advance; the data acquisition request is sent to the HSS by the network equipment according to a user request sent by the user equipment;
the sending module 104 is configured to return the response data to the network device, so that the network device processes the user request according to the response data.
In addition, an embodiment of the present invention further provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data processing methods as described in the previous embodiments.
Furthermore, the embodiment of the present invention also provides a computer storage medium, on which a computer program is stored, wherein the program, when executed, implements the data processing method according to the foregoing embodiments.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods disclosed above, functional modules/units in the apparatus, may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a generic and descriptive sense only and not for purposes of limitation. In some instances, features, characteristics and/or elements described in connection with a particular embodiment may be used alone or in combination with features, characteristics and/or elements described in connection with other embodiments, unless expressly stated otherwise, as would be apparent to one skilled in the art. It will therefore be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the invention encompassed by the appended claims.
Claims (12)
1. A data processing method applied to a HSS (home subscriber server), the method comprising:
under the condition that the currently received data acquisition request is determined to be not received for the first time, acquiring response data corresponding to the data acquisition request from a pre-opened cache; the data acquisition request is sent to the HSS by the network equipment according to a user request sent by the user equipment;
and returning the response data to the network equipment so that the network equipment processes the user request according to the response data.
2. The method of claim 1, wherein prior to said returning said response data to said network device, said method further comprises:
under the condition that the currently received data acquisition request is determined to be received for the first time, determining response data corresponding to the data acquisition request;
and storing the determined response data into the pre-opened cache.
3. The method according to claim 2, wherein the cache is opened up from a memory according to a YML configuration file, the number of caches is multiple, and the obtaining response data corresponding to the data obtaining request from the cache opened up in advance comprises:
determining a cache corresponding to the data acquisition request;
and acquiring the response data from the cache corresponding to the data acquisition request.
4. The method of claim 3, wherein different data fetch requests invoke different local APIs, and after tunneling the cache, the method further comprises:
respectively establishing a storage key for each cache;
generating a one-to-one correspondence between the parameter information of the API and the cache;
the determining the cache corresponding to the data obtaining request includes: and determining the cache corresponding to the data acquisition request according to the local API called by the data acquisition request and the corresponding relation.
5. The method of claim 4, wherein after receiving the data acquisition request, the method further comprises:
creating a client structure;
analyzing the data acquisition request to acquire request parameters;
storing the request parameters to a parameter list of the client structure;
extracting command parameters from a parameter list of the client structure;
and determining the local API called by the data acquisition request according to a command protocol and the command parameters.
6. The method of claim 5, wherein after the retrieving the response data from the cache corresponding to the data retrieval request, the method further comprises:
and deleting the client structure.
7. The method of claim 6, wherein storing the determined response data into the pre-opened cache comprises:
and storing the determined response data into a corresponding cache according to the local API called by the data acquisition request and the corresponding relation.
8. The method according to any of claims 1-7, wherein the user request is any of a registration request, an authentication request, a location query request, and a deregistration request.
9. The method according to any of claims 1-7, characterized in that said network equipment comprises at least a Call Session control function entity, I-CSCF, and a serving Session control function entity, S-CSCF.
10. An HSS is characterized by comprising a cache, a receiving module, a processing module and a sending module;
the receiving module is used for receiving a data acquisition request;
the processing module is used for acquiring response data corresponding to the data acquisition request from the cache which is opened up in advance under the condition that the currently received data acquisition request is determined to be not received for the first time; the data acquisition request is sent to the HSS by the network equipment according to a user request sent by the user equipment;
the sending module is configured to return the response data to the network device, so that the network device processes the user request according to the response data.
11. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data processing method of any of claims 1-9.
12. A computer storage medium on which a computer program is stored, wherein the program when executed implements a data processing method as claimed in any one of claims 1-9.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211278472.4A CN115361448A (en) | 2022-10-19 | 2022-10-19 | Data processing method, HSS, electronic device and computer storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211278472.4A CN115361448A (en) | 2022-10-19 | 2022-10-19 | Data processing method, HSS, electronic device and computer storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115361448A true CN115361448A (en) | 2022-11-18 |
Family
ID=84008248
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211278472.4A Pending CN115361448A (en) | 2022-10-19 | 2022-10-19 | Data processing method, HSS, electronic device and computer storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115361448A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20010000083A1 (en) * | 1997-10-28 | 2001-03-29 | Doug Crow | Shared cache parsing and pre-fetch |
| CN105243072A (en) * | 2014-07-11 | 2016-01-13 | 北京神州泰岳软件股份有限公司 | Database query method and system |
| CN107436910A (en) * | 2017-04-14 | 2017-12-05 | 阿里巴巴集团控股有限公司 | A kind of data query method and apparatus |
| CN107545050A (en) * | 2017-08-22 | 2018-01-05 | 阿里巴巴集团控股有限公司 | Data query method and device, electronic equipment |
-
2022
- 2022-10-19 CN CN202211278472.4A patent/CN115361448A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20010000083A1 (en) * | 1997-10-28 | 2001-03-29 | Doug Crow | Shared cache parsing and pre-fetch |
| CN105243072A (en) * | 2014-07-11 | 2016-01-13 | 北京神州泰岳软件股份有限公司 | Database query method and system |
| CN107436910A (en) * | 2017-04-14 | 2017-12-05 | 阿里巴巴集团控股有限公司 | A kind of data query method and apparatus |
| CN107545050A (en) * | 2017-08-22 | 2018-01-05 | 阿里巴巴集团控股有限公司 | Data query method and device, electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7822407B2 (en) | Method for selecting the authentication manner at the network side | |
| CN102204222B (en) | Method and device for re-registration or de-registration in IMS | |
| US8185105B2 (en) | Method, system and apparatus for using IMS communication service identifier | |
| US20100177769A1 (en) | Method and Arrangement For Handling Profiles in a Multimedia Service Network | |
| US20110145388A1 (en) | Method, system, and device for realizing registration mechanism of ip multimedia subsystem | |
| CN101573934B (en) | Identification in Communication Networks | |
| US8265622B2 (en) | Method and saving entity for setting service | |
| US20120177194A1 (en) | Method for connecting call | |
| WO2010017749A1 (en) | Method and apparatus for negotiating data compression algorithm through cx or sh interface | |
| EP1879337A1 (en) | A method for processing the register message in the ims network according to the initial filtering rules | |
| US11659607B2 (en) | Session initiated protocol (SIP) session establishment with a home subscriber server (HSS) outage | |
| CN100370744C (en) | A recovery processing method for a home user server failure | |
| US20220022272A1 (en) | Session initiated protocol (sip) session establishment with a home subscriber server (hss) outage | |
| CN115361448A (en) | Data processing method, HSS, electronic device and computer storage medium | |
| CN1753363A (en) | Method of selecting right identification mode at network side | |
| CN120785867A (en) | Method, device, equipment and storage medium for re-registering multimedia subsystem | |
| EP2532143B1 (en) | Method and apparatus for routing xcap requests | |
| CN101729998A (en) | Information transmission, common guide architecture, and authentication method, system and device | |
| KR100549505B1 (en) | System and method for providing mobile streaming service in IMS network | |
| CN101753523A (en) | Data processing method, device and system | |
| CN117750494A (en) | Communication method, converged user data management network element, first network element and storage medium | |
| CN100562019C (en) | Operation Processing Method and Home Subscriber Server in IP Multimedia Subsystem | |
| CN100388662C (en) | A method for preventing users with 3G capability from using transitional authentication mode | |
| US8051129B2 (en) | Arrangement and method for reducing required memory usage between communication servers | |
| CN118870338B (en) | IMS registration information interaction method, device, equipment, storage medium and program product |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20221118 |
|
| RJ01 | Rejection of invention patent application after publication |