Identification analysis method, electronic equipment, storage medium and program product
By caching identification codes to be parsed in UPF and uploading them in batches, the problem of excessive pressure on identification nodes is solved, the efficiency and accuracy of identification parsing is improved, and resource utilization is optimized.
Patent Information
- Application Number
- CN202411377658.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-09-29
AI Technical Summary
When the existing industrial Internet identification resolution system frequently sends identification resolution requests, it leads to excessive pressure on identification nodes, prolongs query time and decreases in resolution accuracy.
By setting up the identifier code to be parsed in the UPF, when you meet the preset conditions, send a request message containing multiple identification codes to the identifier node to reduce the number of uploads and relieve the pressure of the identifier node.
Effectively reduce the pressure of the identifier node, improve the efficiency and accuracy of the identification analysis, while avoiding the waste of resources and storage space.
Smart Images

Figure CN119363826A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of identity resolution, and in particular to an identity resolution method, electronic device, storage medium and program product. Background Art
[0002] The industrial Internet identity resolution system plays an important role in the global digital transformation and industrial Internet. There are many types of existing industrial Internet identity resolution systems, which are used in different industrial scenarios. Users send identity resolution requests to identification nodes, and identification nodes return resolution content based on the resolution requests. However, when users send identity resolution requests frequently, it will cause excessive pressure inside the identification nodes, resulting in long query time and inaccurate resolution. Summary of the invention
[0003] The present application provides an identification resolution method, an electronic device, a storage medium and a program product, which are used to reduce the number of upload times of identification resolution requests, thereby reducing the pressure on identification nodes.
[0004] In the first aspect, the present application provides an identification resolution method applied to UPF, the UPF includes a first cache area for storing identification codes to be resolved; the method includes: receiving a first identification code to be resolved sent by a base station; storing the first identification code in the first cache area; when a preset condition is met, sending a first request message to an identification node, the first request message including multiple identification codes to be resolved stored in the first cache area, the first request message being used to request the identification node to resolve the multiple identification codes to obtain identification information corresponding to each of the multiple identification codes.
[0005] The identification resolution method provided in the present application stores the identification codes to be resolved in the first cache area, and uploads multiple identification codes to the identification node together, thereby reducing the number of uploads, thereby reducing the pressure on the identification node and improving the efficiency and accuracy of identification resolution; at the same time, preset conditions are set, and when the preset conditions are met, multiple identification codes to be resolved are sent to the identification node to maximize the utilization of network resources. Therefore, the identification resolution method provided in the present application avoids the waste of resources and storage space while alleviating the pressure on the identification node.
[0006] In a possible implementation, the preset condition includes at least one of the following: the number of identification codes to be resolved stored in the first cache area is greater than or equal to a first preset number; the storage capacity occupied by the identification codes to be resolved stored in the first cache area is greater than or equal to the first preset capacity.
[0007] Another possible implementation is that there are multiple first cache areas, and one first cache area is used to store identification codes of the same batch; the method also includes: determining a target first cache area corresponding to the first identification code from multiple first cache areas based on the composition of the first identification code; storing the first identification code in the first cache area, including: storing the first identification code in the target first cache area.
[0008] In another possible implementation, the identification code includes a first character and a second character; the first character is used to indicate public information of the identification code, and the second character is used to indicate unique identification information of the identification code; the first character of the identification codes of the same batch is the same; the identifier of the cache area is the first character of the identification codes of the same batch that the cache area is configured to store; according to the composition of the first identification code, determining the target first cache area corresponding to the first identification code from multiple first cache areas, including: according to the first character of the first identification code, matching with the identifiers of the multiple first cache areas to determine the target first cache area corresponding to the first identification code, wherein the identifier of the target first cache area is the same as the first character of the first identification code.
[0009] Another possible implementation method is that the identification code includes a first character and a second character; the first character is used to indicate public information of the identification code, and the second character is used to indicate unique identification information of the identification code; the first character of the identification codes of the same batch is the same; storing the first identification code in the first cache area includes: storing the second character of the first identification code in the first cache area.
[0010] Another possible implementation manner is to receive a first response message sent by the identification node, the first response message including identification information corresponding to each of the multiple identification codes; and send the identification information corresponding to each of the multiple identification codes to the local server.
[0011] Another possible implementation manner is to store the first identification code in the first cache area, including: when the parsed identification codes stored in the second cache area do not include the first identification code, storing the first identification code in the first cache area.
[0012] In another possible implementation, while sending a query request to the identification node, the method further includes: sending a synchronization message to a local server, the synchronization message including multiple identification codes to be resolved, and the synchronization message is used to indicate that the multiple identification codes to be resolved are being resolved.
[0013] In another possible implementation, the first identification code is a plurality of identification codes.
[0014] In the second aspect, the present application provides an identification resolution method, which is applied to a base station, and the base station includes a third cache area for storing identification codes to be resolved; the method includes: receiving the identification code to be resolved sent by the terminal; storing the identification code in the third cache area; when a preset condition is met, sending multiple identification codes to be resolved stored in the third cache area to the UPF, so that the UPF sends a query request to the identification node based on the multiple identification codes to be resolved, and the query request includes the multiple identification codes to be resolved, and the query request is used to request the identification node to resolve the multiple identification codes to obtain identification information corresponding to each of the multiple identification codes.
[0015] Storing the identification code through the base station reduces the working pressure of the UPF, thereby increasing the service life of the UPF. Therefore, the identification resolution method provided by this application can reduce the operation and maintenance costs, and at the same time reduce the number of uploads, thereby achieving the effect of reducing the pressure on the identification node.
[0016] In a possible implementation, the preset conditions include at least one of the following: the number of identification codes to be resolved stored in the third cache area is greater than or equal to a first preset number; the storage capacity occupied by the identification codes to be resolved stored in the third cache area is greater than or equal to the first preset capacity.
[0017] Another possible implementation is that there are multiple third cache areas, and one third cache area is used to store identification codes of the same batch; the method also includes: determining a second target cache area corresponding to the identification code from multiple third cache areas according to the composition of the identification code; storing the identification code in the third cache area includes: storing the identification code in the second target cache area.
[0018] In another possible implementation, the identification code includes a first character and a second character; the first character is used to indicate public information of the identification code, and the second character is used to indicate unique identification information of the identification code; the first character of the identification codes of the same batch is the same; the identifier of the cache area is the first character of the identification codes of the same batch that the cache area is configured to store; according to the composition of the identification code, the second target cache area corresponding to the identification code is determined from multiple third cache areas, including: according to the first character of the identification code, matching with the identifiers of the multiple third cache areas to determine the second target cache area corresponding to the first identification code, wherein the identifier of the second target cache area is the same as the first character of the identification code.
[0019] Another possible implementation method is that the identification code includes a first character and a second character; the first character is used to indicate public information of the identification code, and the second character is used to indicate unique identification information of the identification code; the first character of the identification codes of the same batch is the same; storing the identification code in a third cache area includes: storing the second character of the identification code in the third cache area.
[0020] In the third aspect, the present application provides an identification resolution method, which is applied to a local server, and the method includes: receiving a synchronization message sent by UPF, the synchronization message includes multiple identification codes to be resolved, and the synchronization message is used to indicate that the multiple identification codes to be resolved are being resolved; receiving identification information corresponding to each of the multiple identification codes to be resolved sent by UPF; the identification information corresponding to each of the multiple identification codes is obtained by UPF requesting an identification node to resolve the multiple identification codes in a resolution request; or, in a case where the identification information corresponding to each of the multiple identification codes to be resolved is not received within a second preset time period, sending a second request message to the identification node, the second request message includes multiple identification codes to be resolved, and the second request message is used to request the identification node to query the identification information of the multiple identification codes to be resolved; receiving a second response message sent by the identification node, the second response message includes the identification information corresponding to each of the multiple identification codes.
[0021] In the identification resolution method provided by the present application, the identification information resolved by the identification node is stored in the local server, which avoids the loss of identification information and increases the availability of the identification resolution method. In addition, when the local server does not receive the identification information of multiple identification codes to be resolved within a second preset time period, it can send a resolution request to the identification node, which avoids the problem that the identification resolution method cannot be resolved normally due to internal failure of the UPF.
[0022] In a fourth aspect, the present application provides an identification resolution device, which is applied to UPF, and the UPF includes a first cache area for storing identification codes to be resolved; the identification resolution device includes a receiving module, a processing module and a sending module; the receiving module is used to receive a first identification code to be resolved sent by a base station; the processing module is used to store the first identification code in a first cache area; the sending module is used to send a first request message to an identification node when a preset condition is met, the first request message includes multiple identification codes to be resolved stored in the first cache area, and the first request message is used to request the identification node to resolve the multiple identification codes to obtain identification information corresponding to each of the multiple identification codes.
[0023] In a possible implementation, the preset condition includes at least one of the following: the number of identification codes to be resolved stored in the first cache area is greater than or equal to a first preset number; the storage capacity occupied by the identification codes to be resolved stored in the first cache area is greater than or equal to the first preset capacity.
[0024] Another possible implementation method is that there are multiple first cache areas, and one first cache area is used to store identification codes of the same batch; the processing module is also used to determine the target first cache area corresponding to the first identification code from the multiple first cache areas according to the composition of the first identification code; the processing module is specifically used to store the first identification code in the target first cache area.
[0025] In another possible implementation, the identification code includes a first character and a second character; the first character is used to indicate the public information of the identification code, and the second character is used to indicate the unique identification information of the identification code; the first character of the identification codes of the same batch is the same; the identifier of the cache area is the first character of the identification codes of the same batch that the cache area is configured to store; the processing module is specifically used to match the identifiers of multiple first cache areas according to the first character of the first identification code, and determine the first target cache area corresponding to the first identification code, wherein the identifier of the first target cache area is the same as the first character of the first identification code.
[0026] In another possible implementation, the identification code includes a first character and a second character; the first character is used to indicate public information of the identification code, and the second character is used to indicate unique identification information of the identification code; the first character of the identification codes of the same batch is the same; and the processing module is specifically used to store the second character of the first identification code in the first buffer area.
[0027] In another possible implementation, the receiving module is further used to receive a first response message sent by the identification node, the first response message including identification information corresponding to each of the multiple identification codes; the sending module is further used to send the identification information corresponding to each of the multiple identification codes to the local server.
[0028] In another possible implementation, the UPF also includes a second cache area for storing resolved identification codes; the processing module is specifically used to send a synchronization message to the local server, the synchronization message includes multiple identification codes to be resolved, and the synchronization message is used to indicate that the multiple identification codes to be resolved are being resolved.
[0029] Another possible implementation is that while sending a query request to the identification node, the sending module is also used to send a synchronization message to the local server, the synchronization message includes multiple identification codes to be resolved, and the synchronization message is used to indicate that the multiple identification codes to be resolved are being resolved.
[0030] In another possible implementation, the first identification code is a plurality of identification codes.
[0031] In the fifth aspect, the present application provides an identification resolution device, which is applied to a base station, and the base station includes a third cache area for storing identification codes to be resolved; the identification resolution device includes a receiving module, a processing module and a sending module; the receiving module is used to receive the identification code to be resolved sent by the terminal; the processing module is used to store the identification code in the third cache area; the sending module is used to send multiple identification codes to be resolved stored in the third cache area to the UPF when preset conditions are met, so that the UPF sends a query request to the identification node based on the multiple identification codes to be resolved, the query request includes multiple identification codes to be resolved, and the query request is used to request the identification node to resolve the multiple identification codes to obtain identification information corresponding to each of the multiple identification codes.
[0032] In a possible implementation, the preset conditions include at least one of the following: the number of identification codes to be resolved stored in the third cache area is greater than or equal to a first preset number; the storage capacity occupied by the identification codes to be resolved stored in the third cache area is greater than or equal to the first preset capacity.
[0033] Another possible implementation method is that there are multiple third cache areas, and one third cache area is used to store identification codes of the same batch; the processing module is also used to determine the target third cache area corresponding to the identification code from multiple third cache areas according to the composition of the identification code; the processing module is specifically used to store the identification code in the target third cache area.
[0034] In another possible implementation, the identification code includes a first character and a second character; the first character is used to indicate the public information of the identification code, and the second character is used to indicate the unique identification information of the identification code; the first character of the identification codes of the same batch is the same; the identifier of the cache area is the first character of the identification codes of the same batch that the cache area is configured to store; the processing module is specifically used to match the identifiers of multiple third cache areas according to the first character of the identification code, and determine the target third cache area corresponding to the first identification code, wherein the identifier of the target third cache area is the same as the first character of the identification code.
[0035] Another possible implementation method is that the identification code includes a first character and a second character; the first character is used to indicate public information of the identification code, and the second character is used to indicate unique identification information of the identification code; the first character of the identification codes of the same batch is the same; the processing module is specifically used to store the second character of the identification code in a third cache area.
[0036] In the sixth aspect, the present application provides an identification resolution device, which is applied to a local server; the identification resolution module includes a receiving module and a sending module; the receiving module is used to receive a synchronization message sent by the UPF, the synchronization message includes multiple identification codes to be resolved, and the synchronization message is used to indicate that the multiple identification codes to be resolved are being resolved; it is also used to receive the identification information corresponding to each of the multiple identification codes to be resolved sent by the UPF; the identification information corresponding to each of the multiple identification codes is obtained by the UPF requesting the identification node to resolve the multiple identification codes in a resolution request; when the identification information corresponding to each of the multiple identification codes to be resolved is not received within a second preset time period, the sending module is used to send a second request message to the identification node, the second request message includes multiple identification codes to be resolved, and the second request message is used to request the identification node to query the identification information of the multiple identification codes to be resolved; the receiving module is also used to receive a second response message sent by the identification node, the second response message includes the identification information corresponding to each of the multiple identification codes.
[0037] In a seventh aspect, the present application provides an electronic device, comprising: a processor and a memory; the memory stores instructions executable by the processor; when the processor is configured to execute the instructions, the electronic device implements the methods of the first to third aspects above.
[0038] In an eighth aspect, the present application provides a computer-readable storage medium, which includes: computer software instructions; when the computer software instructions are executed in an electronic device, the electronic device implements the methods of the first to third aspects above.
[0039] In a ninth aspect, the present application provides a computer program product, which includes a computer program; when the computer program runs in an electronic device, the electronic device implements the methods of the first to third aspects above.
[0040] The beneficial effects of the fourth to ninth aspects mentioned above refer to the corresponding descriptions of the first to third aspects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 is a flow chart of an identification resolution method;
[0042] Figure 2 A schematic diagram of the hardware implementation environment of the identity resolution method provided in this application;
[0043] Figure 3 A flowchart of an identification resolution method provided for this application;
[0044] Figure 4 A schematic diagram of the structure of an identification code parsing method provided in this application;
[0045] Figure 5 A structural diagram of another identification code parsing method provided by the present application;
[0046] Figure 6 A flowchart of another identification resolution method provided by this application;
[0047] Figure 7 A flowchart of another identification resolution method provided by this application;
[0048] Figure 8 A step diagram of an identification resolution method provided for this application;
[0049] Fig. 9 A schematic diagram of the composition of an identification resolution device provided in this application;
[0050] Fig.10 A schematic diagram of another identification resolution device provided in this application;
[0051] Fig.11 A schematic diagram of another identification resolution device provided in this application;
[0052] Fig.12 A schematic diagram of the composition of an electronic device provided in this application. DETAILED DESCRIPTION
[0053] The following is a detailed description of an identification resolution method provided by the present application in conjunction with the accompanying drawings.
[0054] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0055] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0056] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0057] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0058] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. are not limiting the quantity and execution order.
[0059] In the description of the present application, unless otherwise specified, “plurality” means two or more.
[0060] With the rapid development of the industrial Internet, enterprises have an increasing demand for the informatization, digitization, and networking of production factors such as equipment, products, and materials. As a key technology to achieve the interconnection of these production factors, the industrial Internet identification resolution system assigns a unique identifier to each object, and uses the identification resolution system to achieve cross-regional, cross-industry, and cross-enterprise information query and sharing, thereby breaking information silos and improving overall production efficiency and management level.
[0061] like Figure 1 The identification resolution method in the prior art mainly includes the following steps: the base station sends the identification code received by the code scanning device to the UPF, the UPF uploads the identification code to the identification node for resolution, the identification node returns the identification information after the identification code resolution to the UPF, and the UPF sends the returned identification information to the local server for storage. However, when the UPF uploads the identification code resolution operation too many times, it is easy to cause pressure on the identification node, thereby affecting the effect and accuracy of the identification resolution, and may cause network delays and other problems.
[0062] In response to the above technical problems, the present application provides an identification resolution method, the idea of which is: multiple identification codes are stored through UPF, and the identification codes of the same batch are uploaded to the identification node for query at one time. It can be understood that compared with the identification resolution method of the prior art, the method provided by the embodiment of the present application can cache the identification codes to be resolved in the UPF, and upload multiple identification codes to be resolved to the identification node for resolution together. In this way, uploading multiple identification codes to be resolved to the identification node for resolution together reduces the number of uploads, thereby alleviating the pressure on the identification node, and then improving the efficiency and accuracy of identification resolution.
[0063] The embodiments provided in this application are described in detail below in conjunction with the accompanying drawings.
[0064] The technical solution provided by the embodiments of the present disclosure can be applied to various mobile communication networks, for example, a new radio (NR) mobile communication network using 5G, a future mobile communication network, or a variety of communication convergence systems, etc., and the embodiments of the present disclosure are not limited to this.
[0065] See also Figure 2 , is a schematic diagram of the hardware implementation environment involved in the identification resolution method provided in the embodiment of the present application. Figure 2 As shown, the hardware implementation environment includes: a base station, a UPF, an identification node, and a local server. The base station, the UPF, the identification node, and the local server can be connected by wire or wireless means, for example, using a 5G communication network for connection, which is not limited in the embodiments of the present application.
[0066] The base station is used to receive the identification code to be resolved obtained by the scanning device and send the identification code to be resolved to the UPF.
[0067] Exemplarily, the base station can be a base station or an evolved base station (eNB or eNodeB) in long term evolution (LTE), long term evolution advanced (LTEA), a base station device in a 5G network, or a base station in a future communication system, etc. The base station can include various macro base stations, micro base stations, home base stations, wireless remote stations, reconfigurable intelligent surfaces (RIS), routers, wireless fidelity (WIFI) devices, and other network side devices.
[0068] UPF is the routing and forwarding node for user plane data packets in 5G networks and plays a vital role in 5G networks.
[0069] In some embodiments, the UPF is used to receive the identification code to be resolved uploaded by the base station, upload the identification code to be resolved to the identification node and the local server synchronously, receive the identification information resolved by the identification node, and transmit the identification information to the local server.
[0070] In some embodiments, the UPF includes a buffer area for storing the identification code to be resolved. Based on this, after receiving the identification code to be resolved, the UPF can first store it in the buffer area and then upload it to the identification node uniformly.
[0071] It can be understood that the embodiment of the present application is based on UPF receiving and storing the identification codes to be parsed sent by the base station, and then uploading them to the identification node in a unified manner, which can improve the efficiency of data transmission and reduce the pressure on the identification node.
[0072] The identification node is used to receive the identification code to be resolved sent by the UPF, and resolve the identification code to be resolved to obtain identification information.
[0073] Exemplarily, the identification node may be a server cluster composed of servers, or a single server, or a computer, or a processor or processing chip in a server or computer, etc.
[0074] The local server is used to receive the identification code and identification information to be resolved sent by the UPF.
[0075] Exemplarily, the local server may be a server cluster composed of servers, or a single server, or a computer, or a processor or processing chip in a server or computer, etc.
[0076] It should be noted that the application scenarios of the embodiments disclosed in this application are not limited. The system architecture and business scenarios described in the embodiments disclosed in this application are intended to more clearly illustrate the technical solutions of the embodiments disclosed in this application, and do not constitute a limitation on the technical solutions provided by the embodiments disclosed in this application. It is known to those skilled in the art that with the evolution of technology and the emergence of new business scenarios, the technical solutions provided by the embodiments disclosed in this application are also applicable to similar technical problems.
[0077] See also Figure 3 , is a flow chart of an identification resolution method provided in an embodiment of the present application. Figure 3 As shown, the identification resolution method provided by this application is applied to Figure 3 The UPF shown in specifically includes the following steps S201 to S203.
[0078] S201. Receive a first identification code to be parsed sent by a base station.
[0079] In some embodiments, the first identification code may be one or more.
[0080] In some embodiments, when there are multiple first identification codes, the first identification codes may be identification codes of the same batch.
[0081] It is understandable that the identification code is used to distinguish each item. The identification codes of the same batch are usually the identification codes of items of the same origin, the same production batch and the same type. Therefore, the identification codes of the same batch are similar. For example, for a factory, within a certain period of time, the items scanned are basically of the same category, such as scanning a batch of steel pipes and a batch of copper wires. For the same batch of items, the first identification codes are basically similar, and only a few digits are different.
[0082] S202: Store the first identification code in a first buffer area.
[0083] The first buffer area is used to store the identification code to be parsed.
[0084] Exemplarily, the first cache area may be a storage space built into the UPF (eg, a memory of the UPF), or a storage device of a peripheral device integrated with the UPF.
[0085] In some embodiments, step S202 may be implemented as follows: when the current time is within a first preset time period, storing the first identification code in a first cache area.
[0086] Exemplarily, the first preset time period may be a time period when there are too many identification codes to be resolved and identification resolution requests need to be frequently sent to the identification node; or the first preset time period may be a time period when the resolution pressure of the identification node is relatively high. Exemplarily, the first preset time period may be 8 am to 12 pm.
[0087] In some embodiments, when the number of first identification codes received by the UPF is small and the operation of sending identification resolution requests to the identification node is not frequent, the UPF may not store the first identification code and directly send the identification resolution request to the identification node.
[0088] It can be understood that by establishing the first preset time period, the flexibility and versatility of the identification resolution method are increased, while also providing users with room for choice to establish the first preset time period at their own discretion, which reduces the workload of the UPF to a certain extent.
[0089] In some embodiments, there are multiple first cache areas, and one first cache area is used to store identification codes of the same batch; the above method also includes: determining a target first cache area corresponding to the first identification code from multiple first cache areas according to the composition of the first identification code.
[0090] Thus, the above S202 may be specifically implemented as: storing the first identification code in the target first buffer area.
[0091] It can be understood that, by opening up multiple first buffer areas, multiple first buffer areas simultaneously store the first identification code, which improves work efficiency, while also improving the accuracy of identification resolution and reducing the work pressure of the identification node.
[0092] Next, the composition of the first identification code is first introduced.
[0093] In some embodiments, the first identification code may consist of a first character and a second character.
[0094] The first character is used to indicate the public information of the identification code, and the second character is used to indicate the unique identification information of the identification code.
[0095] Exemplarily, the first character is used to indicate the public information of the identification code. For example, when the identification code is 08810012345678 / abc123, the first character is 08810012345678, 088 indicates the region, 100 indicates the industry, 12345678 indicates the company, and 08810012345678 is the beginning of the code for similar products of the same company.
[0096] Exemplarily, the second character is used to indicate the unique identification information of the identification code to distinguish the identification code. For example, when the identification code is 08810012345678 / abc123, the second character is abc123. abc123 identifies the internal code of the enterprise and is used to distinguish the specific identification information of each identification code in the same batch.
[0097] In some embodiments, the first character of the identification codes of the same batch is the same.
[0098] Exemplarily, for identification codes of the same batch, the identification codes are basically similar, with only a few digits being different.
[0099] In some embodiments, the identifier of the buffer area is the first character of the identification codes of the same batch that the buffer area is configured to store.
[0100] For example, taking 08810012345678 / abc123 as an example, the codes of similar products of the same enterprise all start with 08810012345678, and only the few digits after the slash are different, so the identifier of the buffer (that is, the id value of the buffer) is 08810012345678.
[0101] In one embodiment, the above-mentioned "determining the target first cache area corresponding to the first identification code from multiple first cache areas according to the composition of the first identification code" can be implemented as: according to the first character of the first identification code, matching with the identifiers of multiple first cache areas, to determine the target first cache area corresponding to the first identification code, wherein the identifier of the target first cache area is the same as the first character of the first identification code.
[0102] Exemplarily, the first identification code obtained from the base station is compared with each first cache area. If the first character of the first identification code is the same as the first cache area identifier, the above-mentioned first cache area is the corresponding target first cache area. For example, when the first identification code is 08810012345678 / abc123, the target first cache area is 08810012345678.
[0103] In some embodiments, the above step S202 may also be implemented as: storing the second character of the first identification code in the first buffer area.
[0104] Exemplarily, when the first identification code is 08810012345678 / abc123, the identification of the target first cache area is 08810012345678, and only the second character abc123 of the first identification code is stored in the first cache area. The first identification codes in this first cache area belong to similar products of the same enterprise and have the same first character.
[0105] It can be understood that directly storing the second character of the first identification code reduces the waste of space in the first cache area, maximizes the use of space resources in the first cache area, and at the same time increases the accuracy of the identification information after identification resolution through the identification determination of the first cache area.
[0106] In some embodiments, the number of first buffer areas in the UPF should be less than or equal to a preset number threshold.
[0107] The preset quantity threshold is an upper limit of the quantity of the first buffer areas.
[0108] Exemplarily, when the UPF fails to find the first cache area corresponding to the first identification code (i.e., the identifier of the cache area is the same as the first character of the first identification code), a new first cache area is created as the target first cache area, and the identifier of the new target first cache area is the first character of the first identification code. The first identification code is stored in the new target first cache area, but due to the limited internal space of the UPF, a preset number threshold is set, and a new first cache area cannot be created after the preset number threshold is reached.
[0109] It can be understood that a preset number threshold is established to prevent the internal storage space of the UPF from overflowing, causing a newly created first cache area to replace the existing first cache area, thereby causing the loss of the first identification code already existing in the first cache area. At the same time, the establishment of a preset number threshold is to avoid too many first identification codes stored in the UPF, causing network delays and freezes.
[0110] In some embodiments, the UPF also includes an alternative cache area for storing the identification code to be parsed when the second condition is met.
[0111] Among them, the second condition includes: the identifier of the first buffer area in the UPF is different from the first character of the identification code to be parsed; and the number of the first buffer areas in the UPF is greater than or equal to a preset number threshold.
[0112] It is understandable that before performing the identity resolution, an alternative cache area is selected in the UPF, and any first identification code can be cached. When the first cache area inside the UPF reaches the preset number threshold, the UPF receives the identification code to be resolved sent by the base station, and the first character of the identification code to be resolved is different from the identification already in the first cache area, and the identification code to be resolved is saved in the alternative cache area. The establishment of the alternative cache area avoids the loss of the identification code to be resolved due to the failure to find the target first cache area.
[0113] S203. When a preset condition is met, a first request message is sent to the identification node. The first request message includes multiple identification codes to be resolved stored in the first cache area. The first request message is used to request the identification node to resolve the multiple identification codes to obtain identification information corresponding to each of the multiple identification codes.
[0114] In some embodiments, the preset condition includes at least one of the following:
[0115] Condition 1: The number of identification codes to be parsed stored in the first cache area is greater than or equal to a first preset number.
[0116] The first preset number is the maximum number of identification codes to be resolved that can be stored in the first buffer area, which can be changed according to actual conditions and is not limited here. For example, the first preset number is 1000.
[0117] Exemplarily, the first cache area can store at most 1000 identification codes to be resolved. When the number of identification codes to be resolved in the first cache area reaches 1000, they are all uploaded to the identification node for identification resolution.
[0118] Condition 2: the storage capacity of the identification codes to be resolved stored in the first cache area is greater than or equal to the first preset capacity.
[0119] The first preset capacity is the memory capacity of the identification code to be parsed that can be accommodated in the first buffer area, which can be changed according to actual conditions and is not limited here. For example, the first preset capacity is 1K bytes of data.
[0120] Exemplarily, the first preset capacity is set to 1K bytes of data, and the first buffer area stores at most 1K bytes of identification codes to be resolved each time. When the capacity of the identification codes to be resolved exceeds 1K bytes, the identification codes are uploaded to the identification node for resolution.
[0121] It can be understood that by setting up preset conditions and sending the first request information to the identification node when the preset conditions are met, waste of internal resources in the first cache area is avoided, and overflow of internal resources in the first cache area is prevented, ensuring maximum use of internal resources in the first cache area.
[0122] In some embodiments, after the above step S203, the above method further includes: receiving a first response message sent by the identification node, the first response message including identification information corresponding to each of the multiple identification codes.
[0123] Exemplarily, after the UPF sends multiple identification codes to be resolved to the identification node, it will receive the identification information resolved by the identification node.
[0124] In some embodiments, after obtaining the identification information corresponding to each of the multiple identification codes, the method further includes: sending the identification information corresponding to each of the multiple identification codes to a local server.
[0125] It can be understood that the UPF sends the identification information corresponding to each of the multiple identification codes received to the local server for storage, which is convenient for user use and also avoids the loss of the identification information corresponding to each of the multiple identification codes.
[0126] In some embodiments, the UPF further includes a second buffer area for storing the parsed identification code.
[0127] Based on this, the above step S202 may also be implemented in the following manner: when the resolved identification codes stored in the second cache area do not include the first identification code, the first identification code is stored in the first cache area.
[0128] For example, see Figure 4 , the first identification code 001 is obtained from the base station, and compared with the identification code in the second cache area, it can be seen that 001 already exists in the second cache area, proving that 001 has been identified and resolved, and the identification information corresponding to 001 exists in the local server. Therefore, the identification information of the above-mentioned first identification code 001 can directly access the local server for query, without sending a resolution request to the identification node.
[0129] It is understandable that comparing the first identification code with the resolved identification code in the second cache area avoids the identification code from repeatedly sending resolution requests to the identification node, reduces the number of times the identification code is uploaded to the identification node, and thus reduces the pressure on the identification node.
[0130] In some embodiments, while sending a query request to the identification node, the following method can also be performed: a synchronization message is sent to the local server, the synchronization message includes multiple identification codes to be resolved, and the synchronization message is used to indicate that the multiple identification codes to be resolved are being resolved.
[0131] Exemplary, participating Figure 5 When UPF uploads multiple identification codes to be resolved in the first cache area to the identification node, the multiple identification codes to be resolved are synchronously sent to the local server. If the local server does not receive the synchronization message sent by UPF, the multiple identification codes to be resolved in the local server are sent to the identification node to request identification resolution.
[0132] It can be understood that when UPF sends a resolution request to the identification node, it sends a synchronization message to the local server. In this way, when the identification information returned by the identification node cannot be received due to a UPF failure, or the identification information cannot be sent to the local server (for example, the identification information is lost due to a UPF failure), the local server can make an identification resolution request, thereby increasing the flexibility and availability of the identification resolution method.
[0133] In some embodiments, the identification code to be resolved sent by the UPF to the identification node and the local server is a complete identification code consisting of the first cache area identifier and the second character of the first identification code stored in the first cache area.
[0134] See also Figure 6 , is a flow chart of another identification resolution method provided in an embodiment of the present application. Figure 3 As shown, the identification resolution method provided by this application is applied to Figure 1 The base station shown in specifically includes the following steps S301 to S303:
[0135] S301: receiving an identification code to be parsed sent by a terminal.
[0136] The terminal is a terminal device with a code scanning function, for example, a code scanning device. Exemplarily, the code scanning device can be a smart phone and a tablet computer, a professional QR code scanner, a multi-function terminal reader (Point of sales, POS), an industrial scanner, a self-service terminal, etc.
[0137] S302: Store the identification code in the third buffer area.
[0138] The third buffer area is used to store the identification code to be parsed.
[0139] In some embodiments, there are multiple third cache areas, and one third cache area is used to store identification codes of the same batch. The above method also includes: determining a target third cache area corresponding to the identification code from multiple third cache areas according to the composition of the identification code.
[0140] Thus, the above S302 may be specifically implemented as: storing the identification code in the target third buffer area.
[0141] Next, the composition of the identification code is introduced.
[0142] In some embodiments, the identification code comprises a first character and a second character;
[0143] The first character is used to indicate the public information of the identification code, and the second character is used to indicate the unique identification information of the identification code.
[0144] In some embodiments, the first character of the identification codes of the same batch is the same.
[0145] In some embodiments, the identifier of the buffer area is the first character of the identification codes of the same batch that the buffer area is configured to store.
[0146] In some embodiments, the above-mentioned "determining the target third cache area corresponding to the identification code from multiple third cache areas according to the composition of the identification code" can be implemented as: according to the first character of the identification code, matching with the identifiers of multiple third cache areas, determining the target third cache area corresponding to the first identification code, wherein the identifier of the target third cache area is the same as the first character of the identification code.
[0147] In some embodiments, the second character of the identification code is stored in a third buffer.
[0148] Exemplarily, refer to the specific implementation in the above step S202, wherein the first cache area is replaced by the third cache area, which will not be described in detail here.
[0149] In some embodiments, the number of third buffer areas in the base station should be less than or equal to a preset number threshold.
[0150] The preset quantity threshold is an upper limit value of the quantity of the third buffer area.
[0151] Exemplarily, the specific implementation of establishing the preset quantity threshold value refers to the establishment of the preset threshold value in the above step S202, which will not be described in detail here.
[0152] In some embodiments, the base station also includes an alternative cache area for storing the identification code to be resolved when the second condition is met.
[0153] The second condition includes: the identifier of the third buffer area in the base station is different from the first character of the identification code to be parsed; and the number of the third buffer areas in the base station is greater than or equal to a preset number threshold.
[0154] Exemplarily, the specific implementation is shown in the above step S202, wherein the first cache area in S202 is replaced by the third cache area, which will not be described in detail here.
[0155] S303. When the preset conditions are met, multiple identification codes to be resolved stored in the third cache area are sent to the UPF, so that the UPF sends a query request to the identification node based on the multiple identification codes to be resolved, and the query request includes the multiple identification codes to be resolved. The query request is used to request the identification node to resolve the multiple identification codes to obtain identification information corresponding to each of the multiple identification codes.
[0156] It can be understood that the storage of the identification codes to be resolved is transferred from UPF to the base station, which reduces the pressure on UPF and avoids overload of the UPF system caused by multiple base stations uploading identification codes at the same time. The identification codes to be resolved are stored and compressed in the third cache area at the base station, and the identification codes to be resolved in the third cache area are uploaded to UPF in batches, which reduces the energy consumption of UPF and increases the availability of the identification resolution method.
[0157] In some embodiments, the preset condition includes at least one of the following:
[0158] Condition 1: The number of identification codes to be parsed stored in the third cache area is greater than or equal to a first preset number.
[0159] Condition 2: the storage capacity of the identification codes to be resolved stored in the third cache area is greater than or equal to the first preset capacity.
[0160] Exemplarily, for the specific implementation of the preset condition, refer to the above step S203, wherein the first buffer area in step S203 is replaced by the third buffer area.
[0161] It can be understood that by setting preset conditions and sending multiple identification codes to be parsed to UPF, the waste of internal resources of the third cache area is avoided, and the overflow of internal resources of the third cache area is also stopped, ensuring the maximum use of internal resources of the third cache area.
[0162] See also Figure 7 , is a flow chart of another identification resolution method provided in an embodiment of the present application. Figure 3 As shown, the identification resolution method provided by this application is applied to Figure 1 The base station shown in specifically includes the following steps S401 to S404:
[0163] S401. Receive a synchronization message sent by UPF, where the synchronization message includes multiple identification codes to be resolved, and the synchronization message is used to indicate that the multiple identification codes to be resolved are being resolved.
[0164] S402. Receive identification information corresponding to each of the multiple identification codes to be resolved sent by UPF; the identification information corresponding to each of the multiple identification codes is obtained by UPF requesting the identification node to resolve the multiple identification codes in one resolution request.
[0165] S403. When the identification information corresponding to the multiple identification codes to be resolved is not received within the second preset time period, a second request message is sent to the identification node, where the second request message includes the multiple identification codes to be resolved, and the second request message is used to request the identification node to query the identification information of the multiple identification codes to be resolved.
[0166] The second preset time period is the time from when the local server receives the identification code to be resolved to when the local server receives the second response message.
[0167] S404: Receive a second response message sent by the identification node, where the second response message includes identification information corresponding to each of the multiple identification codes.
[0168] Exemplarily, the local server receives multiple identification codes to be resolved sent by UPF. If the local server receives identification information corresponding to each of the identification codes to be resolved sent by UPF within a second preset time period, the local server stores the identification information. If the local server does not receive the identification code to be resolved sent by UPF within the second preset time period, the local server sends the multiple identification codes to be resolved to the identification node for identification resolution, and receives the identification information returned by the identification node.
[0169] It can be understood that directly querying the identification information through the local server avoids the problem that the identification resolution method cannot be used when the UPF fails. At the same time, the local server stores the identification information of the resolved identification code, which can be viewed through the local server at any time, thereby improving the fault tolerance and availability of the identification resolution method.
[0170] The following is an introduction to the identification resolution method of the present application embodiment with reference to a specific embodiment. The specific implementation process of the method is as follows: Figure 8 As shown, this embodiment stores the identification codes to be resolved in the buffer area based on the UPF, and then uploads them to the identification node uniformly.
[0171] a1. The base station receives a first identification code to be parsed sent by the terminal.
[0172] Exemplarily, the first identification code to be parsed received by the base station is 08810012345678 / abc123.
[0173] a2. The base station sends the first identification code to be resolved to the UPF, and accordingly, the UPF receives the first identification code to be resolved.
[0174] Exemplarily, the first identification code may be 08810012345678 / abc123.
[0175] a3. UPF stores the first identification code in the first buffer area.
[0176] In some embodiments, there are multiple first buffer areas, one first buffer area is used to store identification codes of the same batch, and according to the composition of the first identification code, a target first buffer area corresponding to the first identification code is determined from the multiple first buffer areas.
[0177] Exemplarily, after receiving the first identification code 08810012345678 / abc123, UPF compares the first identification code 08810012345678 / abc123 with the existing first cache area, searches for the first cache area with the identification 08810012345678, and after determining the first cache area, stores the first identification code 08810012345678 / abc123 in the first cache area.
[0178] Exemplarily, after UPF receives the first identification code 08810012345678 / abc123, if it does not find the first cache area identified as 08810012345678, it creates a new first cache area (identified as 08810012345678) and stores the first identification code 08810012345678 / abc123 in the newly created first cache area.
[0179] Exemplarily, after receiving the first identification code 08810012345678 / abc123, UPF did not find the first cache area identified as 08810012345678, and the number of first cache areas reached the preset number threshold, so the first identification code 08810012345678 / abc123 was placed in the alternative cache area (an alternative cache area was established in UPF).
[0180] a4. When the preset conditions are met, the UPF sends a first request message to the identification node, and accordingly, the identification node receives the first request message.
[0181] Exemplarily, when the number or capacity of the cache area where 08810012345678 / abc123 is located reaches an upper limit, the UPF sends the identification code in the cache area where 08810012345678 / abc123 is located to the identification node.
[0182] In some embodiments, while the UPF sends the first request message to the identification node, it sends the identification code to be resolved in the above-mentioned cache area to the local server.
[0183] a5. The identification node parses multiple identification codes.
[0184] Exemplarily, the identification node receives multiple identification codes in the cache area where 08810012345678 / abc123 is located, parses the multiple identification codes, and obtains identification information corresponding to the multiple identification codes.
[0185] a6. The identification node sends identification information corresponding to each of the multiple identification codes to the UPF, and the UPF receives the identification information corresponding to each of the multiple identification codes.
[0186] a7. UPF sends identification information corresponding to each of the multiple identification codes to the local server, and the local server receives the identification information corresponding to each of the multiple identification codes.
[0187] In some embodiments, when the local server does not receive identification information corresponding to each of the multiple identification codes, the local server sends a second request message to the identification node, the second request message includes the multiple identification codes to be resolved, and the second request message is used to request the identification node to query the identification information of the multiple identification codes to be resolved; the identification node can send a second response message to the local server, the second response message includes the identification information corresponding to each of the multiple identification codes.
[0188] a8. The local server stores identification information corresponding to each of the multiple identification codes.
[0189] Exemplarily, the identification information corresponding to each of the plurality of identification codes is stored in a local server. If it is necessary to view the identification information of the resolved identification code, it can be directly queried in the local server.
[0190] In some embodiments, the related functions of the above-mentioned UPF can be migrated to the base station, that is, a cache area is set in the base station to store the identification codes to be parsed, and then sent to the UPF in a unified manner, which can alleviate the pressure on the UPF.
[0191] It can be seen that the above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the embodiment of the present application provides a hardware structure and / or software module corresponding to each function. It should be easily appreciated by those skilled in the art that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0192] In some embodiments, the present application further provides an identification resolution device, which may include one or more functional modules for implementing the identification resolution method of the above method embodiment.
[0193] For example, Fig. 9 A schematic diagram of the composition of an identification resolution device provided in an embodiment of the present application. Fig. 9 As shown, the identification resolution device 800 is applied to UPF, and the UPF includes a first buffer area for storing identification codes to be resolved, including: a receiving module 801, a processing module 802 and a sending module 803.
[0194] In some embodiments, the receiving module 801 is used to receive a first identification code to be resolved sent by a base station; the processing module 802 is used to store the first identification code in a first cache area; the sending module 803 is used to send a first request message to the identification node when a preset condition is met, and the first request message includes multiple identification codes to be resolved stored in the first cache area, and the first request message is used to request the identification node to resolve the multiple identification codes to obtain identification information corresponding to each of the multiple identification codes.
[0195] In other embodiments, the preset condition includes at least one of the following: the number of identification codes to be resolved stored in the first cache area is greater than or equal to a first preset number; the storage capacity occupied by the identification codes to be resolved stored in the first cache area is greater than or equal to the first preset capacity.
[0196] In some other embodiments, there are multiple first cache areas, and one first cache area is used to store identification codes of the same batch; the processing module 802 is also used to determine the target first cache area corresponding to the first identification code from the multiple first cache areas according to the composition of the first identification code; the processing module 802 is specifically used to store the first identification code in the target first cache area.
[0197] In some other embodiments, the identification code includes a first character and a second character; the first character is used to indicate the public information of the identification code, and the second character is used to indicate the unique identification information of the identification code; the first character of the identification codes of the same batch is the same; the identifier of the cache area is the first character of the identification codes of the same batch that the cache area is configured to store; the processing module 802 is specifically used to match the identifiers of multiple first cache areas according to the first character of the first identification code, and determine the first target cache area corresponding to the first identification code, wherein the identifier of the first target cache area is the same as the first character of the first identification code.
[0198] In some other embodiments, the identification code includes a first character and a second character; the first character is used to indicate the public information of the identification code, and the second character is used to indicate the unique identification information of the identification code; the first character of the identification codes of the same batch is the same; the processing module 802 is specifically used to store the second character of the first identification code in the first cache area.
[0199] In some further embodiments, the receiving module 801 is further used to receive a first response message sent by the identification node, the first response message including identification information corresponding to each of the multiple identification codes; the sending module 803 is further used to send the identification information corresponding to each of the multiple identification codes to the local server.
[0200] In some further embodiments, the UPF also includes a second cache area for storing resolved identification codes; the processing module 802 is specifically used to send a synchronization message to the local server, the synchronization message including multiple identification codes to be resolved, and the synchronization message is used to indicate that the multiple identification codes to be resolved are being resolved.
[0201] In some further embodiments, the first identification code is a plurality of identification codes.
[0202] See also Fig.10 , is a schematic diagram of the composition of another identification resolution device provided in an embodiment of the present application. The identification resolution device 500 can be applied to a base station. The base station includes a third cache area for storing identification codes to be resolved, including: a receiving module 501, a processing module 502 and a sending module 503.
[0203] In some embodiments, the receiving module 501 is used to receive the identification code to be resolved sent by the terminal; the processing module 502 is used to store the identification code in a third cache area; the sending module 503 is used to send multiple identification codes to be resolved stored in the third cache area to the UPF when a preset condition is met, so that the UPF sends a query request to the identification node based on the multiple identification codes to be resolved, and the query request includes the multiple identification codes to be resolved, and the query request is used to request the identification node to resolve the multiple identification codes to obtain identification information corresponding to each of the multiple identification codes.
[0204] In other embodiments, the preset condition includes at least one of the following: the number of identification codes to be resolved stored in the third cache area is greater than or equal to a first preset number; the storage capacity occupied by the identification codes to be resolved stored in the third cache area is greater than or equal to the first preset capacity.
[0205] In other embodiments, there are multiple third cache areas, and one third cache area is used to store identification codes of the same batch; the processing module 502 is also used to determine the target third cache area corresponding to the identification code from multiple third cache areas according to the composition of the identification code; the processing module 502 is specifically used to store the identification code in the target third cache area.
[0206] In other embodiments, the identification code includes a first character and a second character; the first character is used to indicate the public information of the identification code, and the second character is used to indicate the unique identification information of the identification code; the first character of the identification codes of the same batch is the same; the identifier of the cache area is the first character of the identification codes of the same batch that the cache area is configured to store; the processing module 502 is specifically used to match the identifiers of multiple third cache areas according to the first character of the identification code, and determine the target third cache area corresponding to the first identification code, wherein the identifier of the target third cache area is the same as the first character of the identification code.
[0207] In other embodiments, the identification code includes a first character and a second character; the first character is used to indicate the public information of the identification code, and the second character is used to indicate the unique identification information of the identification code; the first character of the identification codes of the same batch is the same; the processing module 502 is specifically used to store the second character of the identification code in the third cache area.
[0208] See also Fig.11 , is a schematic diagram of the composition of another identification resolution device provided in an embodiment of the present application. The identification resolution device 600 is applied to a local server and includes a receiving module 601 and a sending module 602.
[0209] In some embodiments, the receiving module 601 is used to receive a synchronization message sent by the UPF, the synchronization message includes multiple identification codes to be resolved, and the synchronization message is used to indicate that the multiple identification codes to be resolved are being resolved; it is also used to receive the identification information corresponding to each of the multiple identification codes to be resolved sent by the UPF; the identification information corresponding to each of the multiple identification codes is obtained by the UPF requesting the identification node to resolve the multiple identification codes in a resolution request; if the identification information corresponding to each of the multiple identification codes to be resolved is not received within a second preset time period, the sending module 602 is used to send a second request message to the identification node, the second request message includes the multiple identification codes to be resolved, and the second request message is used to request the identification node to query the identification information of the multiple identification codes to be resolved; the receiving module 601 is also used to receive a second response message sent by the identification node, the second response message includes the identification information corresponding to each of the multiple identification codes.
[0210] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present invention provides a possible structural diagram of the electronic device involved in the above-mentioned embodiment. Fig.12 As shown, the electronic device 900 includes: a processor 902 , a communication interface 903 , and a bus 904 . Optionally, the electronic device 900 may further include a memory 901 .
[0211] The processor 902 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor 902 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor 902 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0212] The communication interface 903 is used to connect with other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0213] The memory 901 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0214] As a possible implementation, the memory 901 may exist independently of the processor 902, and the memory 901 may be connected to the processor 902 via a bus 904 to store instructions or program codes. When the processor 902 calls and executes the instructions or program codes stored in the memory 901, the identification resolution method provided in the embodiment of the present invention can be implemented.
[0215] In another possible implementation, the memory 901 may also be integrated with the processor 902 .
[0216] The bus 904 may be an extended industry standard architecture (EISA) bus, etc. The bus 904 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 It is represented by only one thick line, but it does not mean that there is only one bus or one type of bus.
[0217] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the service calling device can be divided into different functional modules to complete all or part of the functions described above.
[0218] The embodiment of the present application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by computer instructions to instruct the relevant hardware, and the program can be stored in the above computer-readable storage medium. When the program is executed, it may include the processes of the above method embodiments. The computer-readable storage medium can be the memory or memory of any of the above embodiments. The above computer-readable storage medium can also be an external storage device of the above service calling device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the above service calling device. Further, the above computer-readable storage medium can also include both the internal storage unit of the above service calling device and an external storage device. The above computer-readable storage medium is used to store the above computer program and other programs and data required by the above service calling device. The above computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
[0219] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program product runs on a computer, the computer is enabled to execute any one of the identification resolution methods provided in the above embodiments.
[0220] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for identity resolution, characterized in that: Applied to UPF, the UPF includes a first buffer area for storing the identification code to be parsed; the method includes: Receiving a first identification code to be resolved sent by a base station; storing the first identification code in the first buffer area; When the first preset condition is met, a first request message is sent to the identification node. The first request message includes multiple identification codes to be resolved stored in the first cache area. The first request message is used to request the identification node to resolve the multiple identification codes to obtain identification information corresponding to each of the multiple identification codes.
2. The method according to claim 1, characterized in that: The preset condition includes at least one of the following: The number of identification codes to be parsed stored in the first cache area is greater than or equal to a first preset number; The storage capacity occupied by the identification codes to be parsed stored in the first cache area is greater than or equal to a first preset capacity.
3. The method according to claim 1, characterized in that There are multiple first buffer areas, and one first buffer area is used to store identification codes of the same batch; the method further includes: Determining a target first buffer area corresponding to the first identification code from a plurality of first buffer areas according to the composition of the first identification code; The storing the first identification code in the first buffer area includes: The first identification code is stored in the target first buffer area.
4. The method according to claim 3, characterized in that: The identification code includes a first character and a second character; the first character is used to indicate the public information of the identification code, and the second character is used to indicate the unique identification information of the identification code; the first character of the identification codes of the same batch is the same; the identifier of the buffer area is the first character of the identification codes of the same batch that the buffer area is configured to store; Determining a target first buffer area corresponding to the first identification code from a plurality of first buffer areas according to the composition of the first identification code includes: According to the first character of the first identification code, the identification of multiple first cache areas is matched to determine the target first cache area corresponding to the first identification code, wherein the identification of the target first cache area is the same as the first character of the first identification code.
5. The method according to claim 3, characterized in that: The identification code includes a first character and a second character; the first character is used to indicate public information of the identification code, and the second character is used to indicate unique identification information of the identification code; The first characters of the identification codes of the same batch are the same; The storing the first identification code in the first buffer area includes: The second character of the first identification code is stored in the first buffer area.
6. The method according to claim 1, characterized in that The method further comprises: receiving a first response message sent by the identification node, wherein the first response message includes identification information corresponding to each of the multiple identification codes; The identification information corresponding to each of the multiple identification codes is sent to a local server.
7. The method according to claim 6, characterized in that The UPF further includes a second buffer area for storing the resolved identification code; The storing the first identification code in the first buffer area includes: In a case where the parsed identification codes stored in the second buffer area do not include the first identification code, the first identification code is stored in the first buffer area.
8. The method according to claim 1, characterized in that While sending the query request to the identification node, the method further includes: A synchronization message is sent to a local server, wherein the synchronization message includes the multiple identification codes to be resolved, and the synchronization message is used to indicate that the multiple identification codes to be resolved are being resolved.
9. The method according to claim 1, characterized in that: The first identification code is a plurality of identification codes.
10. A method for identity resolution, characterized in that: Applied to a base station, the base station includes a third buffer area for storing an identification code to be parsed; the method includes: receiving an identification code to be parsed sent by a terminal; storing the identification code in the third buffer area; When the preset conditions are met, the multiple identification codes to be resolved stored in the third cache area are sent to the UPF, so that the UPF sends a query request to the identification node based on the multiple identification codes to be resolved, and the query request includes the multiple identification codes to be resolved, and the query request is used to request the identification node to resolve the multiple identification codes to obtain the identification information corresponding to each of the multiple identification codes.
11. The method according to claim 10, characterized in that The preset condition includes at least one of the following: The number of identification codes to be parsed stored in the third buffer area is greater than or equal to a first preset number; The storage capacity occupied by the identification codes to be parsed stored in the third cache area is greater than or equal to the first preset capacity.
12. The method according to claim 10, characterized in that There are multiple third buffer areas, and one third buffer area is used to store identification codes of the same batch; the method further includes: According to the composition of the identification code, determining a target third buffer area corresponding to the identification code from the plurality of third buffer areas; The storing the identification code in the third buffer area comprises: The identification code is stored in the target third buffer area.
13. The method according to claim 12, characterized in that The identification code includes a first character and a second character; the first character is used to indicate the public information of the identification code, and the second character is used to indicate the unique identification information of the identification code; the first character of the identification codes of the same batch is the same; the identifier of the buffer area is the first character of the identification codes of the same batch that the buffer area is configured to store; Determining a target third cache area corresponding to the identification code from a plurality of the third cache areas according to the composition of the identification code includes: According to the first character of the identification code, the identification of multiple third cache areas is matched to determine the target third cache area corresponding to the first identification code, wherein the identification of the target third cache area is the same as the first character of the identification code.
14. The method according to claim 10, characterized in that The identification code includes a first character and a second character; the first character is used to indicate public information of the identification code, and the second character is used to indicate unique identification information of the identification code; The first characters of the identification codes of the same batch are the same; The storing the identification code in the third buffer area comprises: The second character of the identification code is stored in the third buffer area.
15. A method for identity resolution, characterized in that: Applied to a local server, the method comprises: receiving a synchronization message sent by the UPF, the synchronization message including a plurality of identification codes to be resolved, the synchronization message being used to indicate that the plurality of identification codes to be resolved are being resolved; receiving identification information corresponding to each of the multiple identification codes to be resolved sent by the UPF; the identification information corresponding to each of the multiple identification codes is obtained by the UPF requesting the identification node to resolve the multiple identification codes in a resolution request; or, If identification information corresponding to each of the multiple identification codes to be resolved is not received within a second preset time period, sending a second request message to the identification node, where the second request message includes the multiple identification codes to be resolved, and the second request message is used to request the identification node to query the identification information of the multiple identification codes to be resolved; A second response message sent by the identification node is received, where the second response message includes identification information corresponding to each of the multiple identification codes.
16. An electronic device, characterized in that: It includes a processor and a memory, the processor is coupled to the memory; the memory is used to store computer instructions, and the computer instructions are loaded and executed by the processor to enable a computer device to implement the identification resolution method as described in any one of claims 1 to 15.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer is enabled to execute the identification resolution method according to any one of claims 1 to 15.
18. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is run on an electronic device, the electronic device executes the identification resolution method as described in any one of claims 1 to 15.
Citation Information
Patent Citations
Industrial interconnection platform message queue deployment method and device based on identification analysis
CN115379012A
Identification analysis method and device, equipment and storage medium
CN117544593A
Identifier searching method and device, computer equipment, storage medium and program product
CN117725077A
Secure resource name resolution using a cache
US20100034381A1
Hierarchical namespace service with distributed name resolution caching and synchronization
US20190394162A1