Identification resolution method, electronic device, storage medium and program product
By caching the identifier codes to be parsed in the UPF and base stations and uploading them uniformly, the problem of excessive pressure on the identifier nodes is solved, the efficiency and accuracy of identifier parsing are improved, and the operation and maintenance costs are reduced.
Patent Information
- Application Number
- CN202411377658.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-09-29
AI Technical Summary
When the existing industrial internet identifier resolution system receives frequent identifier resolution requests, the identifier nodes are prone to excessive pressure, resulting in excessively long query times and decreased resolution accuracy.
By setting up buffers in UPF and base stations to store the identifier codes to be parsed, multiple identifier codes are sent to the identifier node for parsing in a unified manner, reducing the number of uploads, and sending request messages under preset conditions.
It reduces the pressure on the identifier nodes, improves the efficiency and accuracy of identifier resolution, avoids waste of resources and storage space, and reduces operation and maintenance costs.
Smart Images

Figure CN119363826B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of identifier resolution technology, and in particular to an identifier resolution method, electronic device, storage medium and program product. Background Technology
[0002] The Industrial Internet Identifier Resolution System plays a vital role in global digital transformation and the Industrial Internet. There are many types of existing Industrial Internet Identifier Resolution Systems, which are used in different industrial scenarios. Users send identifier resolution requests to identifier nodes, and the identifier nodes return the resolved content based on the resolution requests. However, when users send identifier resolution requests frequently, it will cause excessive pressure on the identifier nodes, resulting in excessively long query times and reduced resolution accuracy. Summary of the Invention
[0003] This application provides an identifier resolution method, electronic device, storage medium, and program product, which reduces the number of times identifier resolution requests are uploaded, thereby reducing the pressure on identifier nodes.
[0004] In a first aspect, this application provides an identifier resolution method applied to a UPF (User-Defined Flag). The UPF includes a first buffer for storing identifier codes to be resolved. The method includes: receiving a first identifier code to be resolved sent by a base station; storing the first identifier code in the first buffer; and, under preset conditions, sending a first request message to an identifier node. The first request message includes multiple identifier codes to be resolved stored in the first buffer. The first request message is used to request the identifier node to resolve the multiple identifier codes to obtain the identifier information corresponding to each of the multiple identifier codes.
[0005] The identifier resolution method provided in this application stores the identifier codes to be resolved in a first buffer and uploads multiple identifier codes to the identifier node at the same time, reducing the number of uploads and thus reducing the pressure on the identifier node, thereby improving the efficiency and accuracy of identifier resolution. At the same time, it sets preset conditions, and sends multiple identifier codes to be resolved to the identifier node when the preset conditions are met, thereby maximizing the utilization of network resources. Therefore, the identifier resolution method provided in this application reduces the pressure on the identifier node while avoiding the waste of resources and storage space.
[0006] One possible implementation includes at least one of the following preset conditions: the number of identifiers to be parsed stored in the first cache is greater than or equal to a first preset number; the storage capacity occupied by the identifiers to be parsed stored in the first cache is greater than or equal to the first preset capacity.
[0007] Another possible implementation is that there are multiple first caches, with one first cache used to store the identification codes of the same batch; the method further includes: determining the target first cache corresponding to the first identification code from the multiple first caches according to the composition of the first identification code; storing the first identification code in the first cache, including: storing the first identification code in the target first cache.
[0008] Another possible implementation is that the identifier code includes a first character and a second character; the first character is used to indicate the common information of the identifier code, and the second character is used to indicate the unique identification information of the identifier code; the first character of the identifier codes in the same batch is the same; the identifier of the cache area is the first character of the identifier codes in the same batch that the cache area is configured to store; based on the composition of the first identifier code, the target first cache area corresponding to the first identifier code is determined from multiple first cache areas, including: matching the first character of the first identifier code with the identifiers of multiple first cache areas to determine the target first cache area corresponding to the first identifier code, wherein the identifier of the target first cache area is the same as the first character of the first identifier code.
[0009] Another possible implementation is that the identifier code includes a first character and a second character; the first character is used to indicate the public information of the identifier code, and the second character is used to indicate the unique identification information of the identifier code; the first character of the identifier codes in the same batch is the same; storing the first identifier code in a first cache includes: storing the second character of the first identifier code in the first cache.
[0010] Another possible implementation involves receiving a first response message from the identifier node, which includes identifier information corresponding to each of the multiple identifier codes; and then sending the identifier information corresponding to each of the multiple identifier codes to the local server.
[0011] Another possible implementation is to store the first identifier in the first cache, including: storing the first identifier in the first cache if the parsed identifier stored in the second cache does not include the first identifier.
[0012] Another possible implementation involves sending a query request to the identifier node while simultaneously sending a synchronization message to the local server. This synchronization message includes multiple identifier codes to be parsed and indicates that the multiple identifier codes to be parsed are being parsed.
[0013] Another possible implementation is that the first identifier is multiple identifiers.
[0014] Secondly, this application provides an identifier resolution method applied to a base station. The base station includes a third buffer for storing identifier codes to be resolved. The method includes: receiving identifier codes to be resolved sent by a terminal; storing the identifier codes in the third buffer; and, under preset conditions, sending multiple identifier codes to be resolved stored in the third buffer to a UPF, so that the UPF sends a query request to an identifier node based on the multiple identifier codes to be resolved. The query request includes the multiple identifier codes to be resolved and is used to request the identifier node to resolve the multiple identifier codes to obtain the identifier information corresponding to each of the multiple identifier codes.
[0015] By storing the identifier code at the base station, the workload of the UPF is reduced, thereby increasing the service life of the UPF. Therefore, the identifier resolution method provided in this application can reduce operation and maintenance costs, as well as reduce the number of uploads, thus reducing the pressure on the identifier node.
[0016] One possible implementation includes at least one of the following preset conditions: the number of identifiers to be parsed stored in the third cache is greater than or equal to the first preset number; the storage capacity occupied by the identifiers to be parsed stored in the third cache is greater than or equal to the first preset capacity.
[0017] Another possible implementation involves multiple third caches, with one third cache used to store identifiers from the same batch. The method further includes: determining the second target cache corresponding to the identifier from the multiple third caches based on the composition of the identifier; storing the identifier in the third cache, including: storing the identifier in the second target cache.
[0018] Another possible implementation is that the identifier code includes a first character and a second character; the first character is used to indicate the common information of the identifier code, and the second character is used to indicate the unique identification information of the identifier code; the first character of the identifier codes in the same batch is the same; the identifier of the cache area is the first character of the identifier codes in the same batch that the cache area is configured to store; based on the composition of the identifier code, the second target cache area corresponding to the identifier code is determined from multiple third cache areas, including: matching the first character of the identifier code with the identifiers of multiple third cache areas to determine the second target cache area corresponding to the first identifier code, wherein the identifier of the second target cache area is the same as the first character of the identifier code.
[0019] Another possible implementation is that the identifier code includes a first character and a second character; the first character is used to indicate the public information of the identifier code, and the second character is used to indicate the unique identification information of the identifier code; the first character of the identifier codes in the same batch is the same; storing the identifier code in a third cache includes: storing the second character of the identifier code in the third cache.
[0020] Thirdly, this application provides an identifier resolution method applied to a local server. The method includes: receiving a synchronization message sent by a UPF, the synchronization message including multiple identifier codes to be resolved, the synchronization message indicating that the multiple identifier codes to be resolved are being resolved; receiving identifier information corresponding to each of the multiple identifier codes to be resolved sent by the UPF; the identifier information corresponding to each of the multiple identifier codes is obtained by the UPF requesting an identifier node to resolve the multiple identifier codes in a single resolution request; or, if no identifier information corresponding to each of the multiple identifier codes to be resolved is received within a second preset time period, sending a second request message to the identifier node, the second request message including the multiple identifier codes to be resolved, the second request message being used to request the identifier node to query the identifier information of the multiple identifier codes to be resolved; and receiving a second response message sent by the identifier node, the second response message including the identifier information corresponding to each of the multiple identifier codes.
[0021] In the identifier resolution method provided in this application, the identifier information after being resolved by the identifier node is stored on the local server, which avoids the loss of identifier information and increases the availability of the identifier resolution method. In addition, if the local server does not receive the identifier information of multiple identifier codes to be resolved within a second preset time period, it can send a resolution request to the identifier node, thus avoiding the problem that the identifier resolution method cannot resolve normally due to internal UPF failure.
[0022] Fourthly, this application provides an identifier resolution apparatus applied to a UPF (User-Defined Flag). The UPF includes a first buffer for storing identifier codes to be resolved. The identifier resolution apparatus includes a receiving module, a processing module, and a sending module. The receiving module receives a first identifier code to be resolved sent by a base station. The processing module stores the first identifier code in the first buffer. The sending module sends a first request message to an identifier node when preset conditions are met. The first request message includes multiple identifier codes to be resolved stored in the first buffer. The first request message requests the identifier node to resolve the multiple identifier codes to obtain the identifier information corresponding to each of the multiple identifier codes.
[0023] One possible implementation includes at least one of the following preset conditions: the number of identifiers to be parsed stored in the first cache is greater than or equal to a first preset number; the storage capacity occupied by the identifiers to be parsed stored in the first cache is greater than or equal to the first preset capacity.
[0024] Another possible implementation is that there are multiple first caches, one of which is used to store the identification codes of the same batch; the processing module is also used to determine the target first cache corresponding to the first identification code from the multiple first caches 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.
[0025] Another possible implementation is that the identifier code includes a first character and a second character; the first character is used to indicate the common information of the identifier code, and the second character is used to indicate the unique identification information of the identifier code; the first character of the identifier codes in the same batch is the same; the identifier of the cache area is the first character of the identifier codes in the same batch that are configured to be stored in the cache area; the processing module is specifically used to match the first character of the first identifier code with the identifiers of multiple first cache areas to determine the first target cache area corresponding to the first identifier code, wherein the identifier of the first target cache area is the same as the first character of the first identifier code.
[0026] Another possible implementation is that the identifier code includes a first character and a second character; the first character is used to indicate the public information of the identifier code, and the second character is used to indicate the unique identification information of the identifier code; the first character of the identifier codes in the same batch is the same; the processing module is specifically used to store the second character of the first identifier code in a first cache area.
[0027] In another possible implementation, the receiving module is also 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 also used to send the identification information corresponding to each of the multiple identification codes to the local server.
[0028] In another possible implementation, UPF also includes a second buffer for storing parsed identifier codes; the processing module is specifically used to send a synchronization message to the local server, the synchronization message including multiple identifier codes to be parsed, and the synchronization message is used to indicate that the multiple identifier codes to be parsed are being parsed.
[0029] Another possible implementation involves sending a query request to the identifier node while simultaneously sending a synchronization message to the local server. This synchronization message includes multiple identifier codes to be parsed and indicates that the parsing of these identifier codes is in progress.
[0030] Another possible implementation is that the first identifier is multiple identifiers.
[0031] Fifthly, this application provides an identifier resolution apparatus applied to a base station. The base station includes a third buffer for storing identifier codes to be resolved. The identifier resolution apparatus includes a receiving module, a processing module, and a sending module. The receiving module receives identifier codes to be resolved sent by a terminal. The processing module stores the identifier codes in the third buffer. The sending module, under preset conditions, sends multiple identifier codes to be resolved stored in the third buffer to a UPF, so that the UPF sends a query request to an identifier node based on the multiple identifier codes to be resolved. The query request includes the multiple identifier codes to be resolved and requests the identifier node to resolve the multiple identifier codes to obtain the identifier information corresponding to each of the multiple identifier codes.
[0032] One possible implementation includes at least one of the following preset conditions: the number of identifiers to be parsed stored in the third cache is greater than or equal to the first preset number; the storage capacity occupied by the identifiers to be parsed stored in the third cache is greater than or equal to the first preset capacity.
[0033] Another possible implementation involves multiple third caches, with one third cache used to store identifiers from the same batch. The processing module is also used to determine the target third cache corresponding to the identifier from the multiple third caches based on the composition of the identifier. Specifically, the processing module is used to store the identifier in the target third cache.
[0034] Another possible implementation is that the identifier code includes a first character and a second character; the first character is used to indicate the common information of the identifier code, and the second character is used to indicate the unique identification information of the identifier code; the first character of the identifier codes in the same batch is the same; the identifier of the cache area is the first character of the identifier codes in the same batch that are configured to be stored in the cache area; the processing module is specifically used to match the first character of the identifier code with the identifiers of multiple third cache areas to determine the target third cache area corresponding to the first identifier code, wherein the identifier of the target third cache area is the same as the first character of the identifier code.
[0035] Another possible implementation is that the identifier code includes a first character and a second character; the first character is used to indicate the public information of the identifier code, and the second character is used to indicate the unique identification information of the identifier code; the first character of the identifier codes in the same batch is the same; the processing module is specifically used to store the second character of the identifier code in a third buffer.
[0036] Sixthly, this application provides an identifier resolution apparatus applied to a local server; the identifier resolution module includes a receiving module and a sending module; the receiving module is used to receive a synchronization message sent by a UPF, the synchronization message including multiple identifier codes to be resolved, the synchronization message indicating that the multiple identifier codes to be resolved are being resolved; it is also used to receive the identifier information corresponding to each of the multiple identifier codes to be resolved sent by the UPF; the identifier information corresponding to each of the multiple identifier codes is obtained by the UPF requesting an identifier node to resolve the multiple identifier codes in a single resolution request; if the identifier information corresponding to each of the multiple identifier 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 identifier node, the second request message including the multiple identifier codes to be resolved, the second request message requesting the identifier node to query the identifier information of the multiple identifier codes to be resolved; the receiving module is also used to receive a second response message sent by the identifier node, the second response message including the identifier information corresponding to each of the multiple identifier codes.
[0037] In a seventh aspect, this application provides an electronic device comprising: a processor and a memory; the memory storing processor-executable instructions; when the processor is configured to execute the instructions, causing the electronic device to implement the methods described in the first to third aspects.
[0038] Eighthly, this application provides a computer-readable storage medium comprising: computer software instructions; which, when executed in an electronic device, cause the electronic device to implement the methods described in the first to third aspects.
[0039] Ninthly, this application provides a computer program product comprising a computer program; when the computer program is run in an electronic device, it causes the electronic device to implement the methods described in the first to third aspects.
[0040] The beneficial effects of aspects four through nine above are described in the corresponding descriptions of aspects one through three, and will not be repeated here. Attached Figure Description
[0041] Figure 1 This is a flowchart of an identifier resolution method;
[0042] Figure 2 A schematic diagram of the hardware implementation environment for the identifier resolution method provided in this application;
[0043] Figure 3 A flowchart of an identifier resolution method provided in this application;
[0044] Figure 4 A schematic diagram of the structure of an identifier code parsing method provided in this application;
[0045] Figure 5 A schematic diagram of another identification code parsing method provided in this application;
[0046] Figure 6 A flowchart illustrating yet another identifier resolution method provided in this application;
[0047] Figure 7 A flowchart illustrating yet another identifier resolution method provided in this application;
[0048] Figure 8 A step diagram of an identifier resolution method provided in this application;
[0049] Figure 9 A schematic diagram of the composition of an identifier resolution device provided in this application;
[0050] Figure 10 A schematic diagram illustrating the composition of another identifier resolution device provided in this application;
[0051] Figure 11 A schematic diagram illustrating the composition of another identifier resolution device provided in this application;
[0052] Figure 12 This is a schematic diagram of the composition of an electronic device provided in this application. Detailed Implementation
[0053] The identification resolution method provided in this application will now be described in detail with reference to the accompanying drawings.
[0054] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0055] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.
[0056] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0057] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0058] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish the same or similar items with essentially the same function and effect. Those skilled in the art can understand that the terms "first" and "second" are not intended to limit the quantity or execution order.
[0059] In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0060] With the rapid development of the Industrial Internet, enterprises are increasingly demanding the informatization, digitalization, and networking of production factors such as equipment, products, and materials. The Industrial Internet Identifier Resolution System, as a key technology for achieving interconnectivity among these production factors, assigns a unique identifier to each object and enables cross-regional, cross-industry, and cross-enterprise information retrieval and sharing through the identifier resolution system, thereby breaking down information silos and improving overall production efficiency and management level.
[0061] like Figure 1 Existing identifier resolution methods mainly involve the following steps: the base station sends the identifier code obtained by the scanning device to the UPF; the UPF uploads the identifier code to the identifier node for parsing; the identifier node returns the parsed identifier information to the UPF; and the UPF sends the returned identifier information to a local server for storage. However, when the UPF performs too many identifier code uploading and parsing operations, it can easily put pressure on the identifier node, thereby affecting the effectiveness and accuracy of identifier resolution, and potentially causing network latency and other problems.
[0062] To address the aforementioned technical problems, this application provides an identifier resolution method. The method involves storing multiple identifier codes in a UPF (User-Generated Framework) and uploading all identifier codes from the same batch to an identifier node for querying. It is understood that, compared to existing identifier resolution methods, the method provided in this application caches the identifier codes to be resolved in the UPF, allowing multiple identifier codes to be resolved to be uploaded to the identifier node together for parsing. This reduces the number of uploads, alleviating the pressure on the identifier node and thus improving the efficiency and accuracy of identifier resolution.
[0063] The embodiments provided in this application will now be described in detail with reference to the accompanying drawings.
[0064] The technical solutions provided in this disclosure can be applied to various mobile communication networks, such as 5G New Radio (NR) mobile communication networks, future mobile communication networks, or multiple communication convergence systems, etc. This disclosure does not limit them.
[0065] See Figure 2 This is a schematic diagram of the hardware implementation environment involved in the identifier resolution method provided in the embodiments of this application. Figure 2 As shown, the hardware implementation environment includes: a base station, a UPF, an identifier node, and a local server. The base station, UPF, identifier node, and local server can be connected via wired or wireless means, for example, using a 5G communication network. This application embodiment does not limit this.
[0066] The base station is used to receive the identifier code to be parsed obtained by the scanning device and send the identifier code to be parsed to the UPF.
[0067] For example, a base station can be a base station in Long Term Evolution (LTE), Long Term Evolution Advanced (LTEA), or an evolved Node B (eNB or eNodeB), a base station device in a 5G network, or a base station in a future communication system. Base stations can include various network-side devices such as macro base stations, micro base stations, home base stations, wireless remote extensions, reconfigurable intelligent surfaces (RIS), routers, and wireless fidelity (WIFI) devices.
[0068] UPF is a routing and forwarding node for user plane data packets in 5G networks, playing a crucial role in 5G networks.
[0069] In some embodiments, the UPF is used to receive the identifier code to be parsed uploaded by the base station, synchronously upload the identifier code to be parsed to the identifier node and the local server, and receive the identifier information parsed by the identifier node and transmit the identifier information to the local server.
[0070] In some embodiments, the UPF includes a cache for storing identifier codes to be parsed. Therefore, after receiving an identifier code to be parsed, the UPF can first store it in the cache and then upload it to the identifier node.
[0071] It is understood that the embodiments of this application are based on UPF receiving and storing the identification code to be parsed sent by the base station, and then uniformly uploading it to the identification node, which can improve the efficiency of data transmission and reduce the pressure on the identification node.
[0072] The identifier node is used to receive the identifier code to be parsed sent by the UPF, and to parse the identifier code to obtain the identifier information.
[0073] For example, the identifier node can be a server cluster consisting of servers, a single server, a computer, or a processor or processing chip in a server or computer.
[0074] The local server is used to receive the identifier code and identifier information to be parsed sent by the UPF.
[0075] For example, a local server can be a server cluster consisting of servers, a single server, a computer, or a processor or processing chip in a server or computer.
[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 of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new business scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0077] See Figure 3 This is a flowchart illustrating an identifier resolution method provided in an embodiment of this application. Figure 3 As shown, the identifier resolution method provided in this application is applied to, for example... Figure 3 The UPF shown specifically includes the following steps S201 to S203.
[0078] S201, Receive the first identifier code to be parsed sent by the base station.
[0079] In some embodiments, the first identifier can be one or more.
[0080] In some embodiments, when there are multiple first identifiers, the first identifiers may be identifiers from the same batch.
[0081] Understandably, identification codes are used to distinguish each item. Identification codes for the same batch typically belong to items from the same place of origin, production batch, and type. Therefore, identification codes within the same batch are similar. For example, for a factory, within a certain period, the items being scanned are generally of the same type, such as scanning a batch of steel pipes or a batch of copper wire. For items within the same batch, the first identification code is generally similar, with only a few digits differing.
[0082] S202. Store the first identifier code in the first cache area.
[0083] The first buffer is used to store the identifier code to be parsed.
[0084] For example, the first cache may be the storage space built into the UPF (e.g., the memory of the UPF), or a storage device with peripherals integrated on the UPF.
[0085] In some embodiments, step S202 can be implemented as follows: if the current time is within a first preset time period, the first identifier code is stored in the first cache area.
[0086] For example, the first preset time period can be a period when there are too many identifier codes to be parsed, requiring frequent sending of identifier parsing requests to the identifier node; or, the first preset time period can be a period when the identifier node experiences high parsing pressure. For example, the first preset time period can be from 8:00 AM to 12:00 PM.
[0087] In some embodiments, when the number of first identifier codes received by the UPF is small and the operation of sending identifier resolution requests to the identifier node is infrequent, the UPF may not store the first identifier codes and may directly send identifier resolution requests to the identifier node.
[0088] Understandably, by setting a first preset time period, the flexibility and versatility of the identifier resolution method are increased, while also providing users with the option to determine and set the first preset time period themselves, which reduces the workload of UPF to some extent.
[0089] In some embodiments, there are multiple first caches, and one first cache is used to store the same batch of identification codes; then the above method further includes: determining the target first cache corresponding to the first identification code from the multiple first caches according to the composition of the first identification code.
[0090] Thus, the above S202 can be specifically implemented as: storing the first identifier code in the target first cache area.
[0091] Understandably, by opening up multiple first cache areas and storing the first identifier code in multiple first cache areas simultaneously, the efficiency of the work is improved, the accuracy of identifier resolution is also improved, and the workload of the identifier nodes is reduced.
[0092] The following section will first introduce the composition of the first identifier code.
[0093] In some embodiments, the first identifier may consist of a first character and a second character.
[0094] The first character indicates public information about the identifier, and the second character indicates unique identification information.
[0095] For example, the first character is used to indicate public information about the identification code. For instance, when the identification code is 08810012345678 / abc123, the first character is 08810012345678. 088 represents the region, 100 represents the industry, 12345678 represents the company, and 08810012345678 is the first character of the code for the same type of product from the same company.
[0096] For example, the second character is used to indicate the unique identification information of the identification code to distinguish the identification code. For instance, 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 code is the same for the same batch.
[0098] For example, for the same batch of identification codes, the identification codes are basically similar, with only a few digits being different.
[0099] In some embodiments, the identifier of the cache is the first character of the identifier code of the same batch that the cache is configured to store.
[0100] For example, taking 08810012345678 / abc123 as an example, the codes of similar products from the same company all start with 08810012345678, only the numbers 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 corresponding to the first identifier from multiple first caches based on the composition of the first identifier" can be implemented as follows: matching the first character of the first identifier with the identifiers of multiple first caches to determine the target first cache corresponding to the first identifier, wherein the identifier of the target first cache is the same as the first character of the first identifier.
[0102] For example, the first identifier code obtained from the base station is compared with each first buffer. If the first character of the first identifier code is the same as the identifier of the first buffer, then the first buffer is the corresponding target first buffer. For example, when the first identifier code is 08810012345678 / abc123, the target first buffer is 08810012345678.
[0103] In some embodiments, step S202 above can also be implemented as: storing the second character of the first identifier code in the first cache area.
[0104] For example, when the first identifier is 08810012345678 / abc123, the identifier of the target first cache area is 08810012345678. The first cache area only stores the second character abc123 of the first identifier. The first identifier in this first cache area belongs to the same type of product of the same enterprise and has the same first character.
[0105] Understandably, directly storing the second character of the first identifier reduces the waste of space in the first cache area, maximizes the use of space resources in the first cache area, and increases the accuracy of the identifier information after identifier resolution by determining the identifier through the identifier in the first cache area.
[0106] In some embodiments, the number of first buffers in the UPF should be less than or equal to a preset number threshold.
[0107] The preset quantity threshold is the upper limit of the number of the first cache area.
[0108] For example, when the UPF does not find a first cache corresponding to the first identifier (i.e., the identifier of the cache is the same as the first character of the first identifier), a new first cache is created as the target first cache. The identifier of the newly created target first cache is the first character of the first identifier. The first identifier is stored in the newly created target first cache. However, due to the limited internal space of the UPF, a preset number threshold is set. Once the preset number threshold is reached, no new first cache can be created.
[0109] It is understandable that setting a preset quantity threshold is intended to prevent the UPF's internal storage space from overflowing, causing a newly created first cache to replace the existing first cache, thus resulting in the loss of the first identifier code already existing in the first cache. At the same time, setting a preset quantity threshold is intended to prevent too many first identifier codes from being stored in the UPF, which could cause network latency and lag.
[0110] In some embodiments, the UPF also includes an alternative cache for storing the identifier code to be parsed if the second condition is met.
[0111] The second condition includes: the identifier of the first buffer in the UPF is not the same as the first character of the identifier code to be parsed; and the number of the first buffers in the UPF is greater than or equal to a preset number threshold.
[0112] Understandably, before identifier resolution, a candidate buffer is selected in the UPF to cache any first identifier code. When the number of first buffers within the UPF reaches a preset threshold, the UPF receives the identifier code to be resolved from the base station. If the first character of this identifier code is different from any existing identifier in the first buffer, the identifier code to be resolved is saved to the candidate buffer. The establishment of the candidate buffer prevents the identifier code to be resolved from being lost due to the inability to find the target first buffer.
[0113] S203. Under the condition that the preset conditions are met, a first request message is sent to the identifier node. The first request message includes multiple identifier codes to be parsed stored in the first cache area. The first request message is used to request the identifier node to parse the multiple identifier codes and obtain the identifier information corresponding to each of the multiple identifier codes.
[0114] In some embodiments, the preset conditions include at least one of the following:
[0115] Condition 1: The number of identifiers to be parsed stored in the first buffer is greater than or equal to the first preset number.
[0116] The first preset quantity is the maximum number of unparsed identifiers that can be stored in the first cache area, and it can be changed according to the actual situation, without being limited here. For example, the first preset quantity is 1000.
[0117] For example, the first cache can store up to 1,000 identifier codes to be parsed. When the number of identifier codes to be parsed in the first cache reaches 1,000, they are uploaded together to the identifier node for identifier parsing.
[0118] Condition 2: The storage capacity occupied by the identifier code to be parsed stored in the first cache is greater than or equal to the first preset capacity.
[0119] The first preset capacity refers to the memory capacity of the identifier code to be parsed that can be accommodated in the first buffer area. This capacity can be changed according to the actual situation and is not limited here. For example, the first preset capacity is 1K bytes of data.
[0120] For example, the first preset capacity is set to 1K bytes of data. The first buffer stores a maximum of 1K bytes of data to be parsed at a time. When the capacity of the identifier code to be parsed exceeds 1K bytes, it is uploaded to the identifier node for parsing.
[0121] Understandably, by setting preset conditions, the first request information is sent to the identifier node when the preset conditions are met, thus avoiding the waste of resources within the first cache area and preventing the overflow of resources within the first cache area, thereby ensuring the maximum utilization of resources within the first cache area.
[0122] In some embodiments, after step S203, the method further includes: receiving a first response message sent by an identification node, the first response message including identification information corresponding to each of the multiple identification codes.
[0123] For example, after the UPF sends multiple identifier codes to be parsed to the identifier node, it will receive the identifier information parsed by the identifier node.
[0124] In some embodiments, after obtaining the identification information corresponding to each of the multiple identification codes, the above method further includes: sending the identification information corresponding to each of the multiple identification codes to a local server.
[0125] Understandably, UPF sends the identification information corresponding to each of the multiple identification codes it receives to a local server for storage, which is convenient for users 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 for storing the parsed identifier.
[0127] Based on this, step S202 above can also be implemented as follows: if the parsed identifier code stored in the second cache does not include the first identifier code, the first identifier code is stored in the first cache.
[0128] For example, see Figure 4 The first identifier code 001 is obtained from the base station and compared with the identifier code in the second buffer. It can be seen that 001 already exists in the second buffer, which proves that 001 has been resolved and the identifier information corresponding to 001 exists in the local server. Therefore, the identifier information of the first identifier code 001 can be directly accessed and queried on the local server without sending a resolution request to the identifier node.
[0129] It is understandable that comparing the first identifier with the already parsed identifier in the second cache avoids repeatedly sending parsing requests to the identifier node, reducing the number of times the identifier is uploaded to the identifier node, thereby reducing the pressure on the identifier node.
[0130] In some embodiments, while sending a query request to the identifier node, the following can also be performed: sending a synchronization message to the local server, the synchronization message including multiple identifier codes to be parsed, the synchronization message being used to indicate that the multiple identifier codes to be parsed are being parsed.
[0131] For example, participate Figure 5 When the UPF uploads multiple identifier codes to be parsed in the first buffer to the identifier node, it synchronously sends the multiple identifier codes to be parsed to the local server. If the local server does not receive the synchronization message sent by the UPF, it sends the multiple identifier codes to be parsed in the local server to the identifier node to request identifier parsing.
[0132] Understandably, when the UPF sends a resolution request to the identifier node, it also sends a synchronization message to the local server. In this way, if the identifier node fails to return the identifier information due to a UPF failure, or fails to send the identifier information to the local server (for example, the identifier information is lost due to a UPF failure), the local server can still make an identifier resolution request, increasing the flexibility and availability of the identifier resolution method.
[0133] In some embodiments, the identifier code to be parsed sent by the UPF to the identifier node and the local server is a complete identifier code consisting of the first cache identifier and the second character of the first identifier code stored in the first cache.
[0134] See Figure 6 This is a flowchart illustrating another identifier resolution method provided in an embodiment of this application. Figure 3 As shown, the identifier resolution method provided in this application is applied to, for example... Figure 1 The base station shown specifically includes the following steps S301 to S303:
[0135] S301, Receive the identifier code to be parsed sent by the receiving terminal.
[0136] The terminal is a device with a barcode scanning function, such as a barcode scanner. Examples of such devices include smartphones and tablets, professional QR code scanners, multi-functional point-of-sale (POS) readers, industrial scanners, and self-service terminals.
[0137] S302. Store the identifier code in the third cache area.
[0138] The third cache is used to store the identifier code to be parsed.
[0139] In some embodiments, there are multiple third caches, and one third cache is used to store the identification codes of the same batch. In this case, the method further includes: determining the target third cache corresponding to the identification code from the multiple third caches according to the composition of the identification code.
[0140] Thus, the above S302 can be specifically implemented as: storing the identifier code in the target third cache area.
[0141] The following section will first introduce the composition of the identification code.
[0142] In some embodiments, the identifier code comprises a first character and a second character;
[0143] The first character indicates public information about the identifier, and the second character indicates unique identification information.
[0144] In some embodiments, the first character of the identification code is the same for the same batch.
[0145] In some embodiments, the identifier of the cache is the first character of the identifier code of the same batch that the cache is configured to store.
[0146] In some embodiments, the above-mentioned "determining the target third cache corresponding to the identifier code from multiple third caches according to the composition of the identifier code" can be implemented as follows: matching the first character of the identifier code with the identifiers of multiple third caches to determine the target third cache corresponding to the first identifier code, wherein the identifier of the target third cache is the same as the first character of the identifier code.
[0147] In some embodiments, the second character of the identifier is stored in a third cache.
[0148] For example, refer to the specific implementation of step S202 above, in which 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 buffers in a base station should be less than or equal to a preset number threshold.
[0150] The preset quantity threshold is the upper limit of the number of third cache areas.
[0151] For example, the specific implementation of setting a preset quantity threshold is described in step S202 above, and will not be repeated here.
[0152] In some embodiments, the base station further includes an alternative buffer for storing the identifier code to be parsed if a second condition is met.
[0153] The second condition includes: the identifier of the third buffer in the base station is different from the first character of the identifier code to be parsed; and the number of third buffers in the base station is greater than or equal to a preset number threshold.
[0154] For example, the specific implementation details are shown in step S202 above, where the first cache area in S202 is replaced with the third cache area, which will not be elaborated here.
[0155] S303. Under the condition of meeting the preset conditions, send the multiple identifier codes to be parsed stored in the third buffer to the UPF, so that the UPF sends a query request to the identifier node based on the multiple identifier codes to be parsed. The query request includes the multiple identifier codes to be parsed. The query request is used to request the identifier node to parse the multiple identifier codes and obtain the identifier information corresponding to each of the multiple identifier codes.
[0156] Understandably, shifting the storage of the identifier code to be parsed from the UPF to the base station reduces the pressure on the UPF and avoids overloading the UPF system caused by multiple base stations uploading identifier codes simultaneously. By storing and compressing the identifier code to be parsed in the third buffer at the base station, and then uploading the identifier code to be parsed in the third buffer in batches to the UPF, the energy consumption of the UPF is reduced and the availability of the identifier resolution method is increased.
[0157] In some embodiments, the preset conditions include at least one of the following:
[0158] Condition 1: The number of identifiers to be parsed stored in the third cache is greater than or equal to the first preset number.
[0159] Condition 2: The storage capacity occupied by the identifier code to be parsed stored in the third cache is greater than or equal to the first preset capacity.
[0160] For example, the specific implementation of the preset conditions is described in step S203 above, wherein the first cache area in step S203 is replaced with the third cache area.
[0161] Understandably, by setting preset conditions and sending multiple identifier codes to be parsed to the UPF, the waste of resources within the third buffer is avoided, and the overflow of resources within the third buffer is prevented, thus ensuring the maximum utilization of resources within the third buffer.
[0162] See Figure 7 This is a flowchart illustrating another identifier resolution method provided in an embodiment of this application. Figure 3 As shown, the identifier resolution method provided in this application is applied to, for example... Figure 1 The base station shown specifically includes the following steps S401 to S404:
[0163] S401. Receive a synchronization message sent by UPF. The synchronization message includes multiple identifier codes to be parsed. The synchronization message is used to indicate that the multiple identifier codes to be parsed are being parsed.
[0164] S402. Receive the identification information corresponding to each of the multiple identification codes to be parsed 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 parse the multiple identification codes in a single parsing request.
[0165] S403. If no identification information corresponding to the multiple identification codes to be parsed is received within the second preset time period, a second request message is sent to the identification node. The second request message includes the multiple identification codes to be parsed and is used to request the identification node to query the identification information of the multiple identification codes to be parsed.
[0166] The second preset time period is the time from when the local server receives the identifier code to be parsed to when the local server receives the second response message.
[0167] S404. Receive the second response message sent by the identification node. The second response message includes identification information corresponding to each of the multiple identification codes.
[0168] For example, the local server receives multiple identifier codes to be parsed from the UPF. If it receives the corresponding identifier information for each identifier code to be parsed from the UPF within a second preset time period, it stores the identifier information. If it does not receive any identifier codes to be parsed from the UPF within the second preset time period, the local server sends the multiple identifier codes to be parsed to the identifier node for identifier parsing and receives the identifier information returned by the identifier node.
[0169] Understandably, querying the identifier information directly through the local server avoids the problem of the identifier resolution method being unusable when the UPF fails. At the same time, the local server stores the identifier information of the resolved identifier codes, which can be viewed at any time, thus improving the fault tolerance and availability of the identifier resolution method.
[0170] The identifier resolution method of this application embodiment is described below with reference to a specific example. The specific implementation process of this method is as follows: Figure 8 As shown, this embodiment stores the identifier code to be parsed in the UPF cache and then uploads it to the identifier node in a unified manner. For example, this can be implemented using the following steps.
[0171] a1. The first identifier code to be parsed sent by the base station receiving terminal.
[0172] For example, the base station receives the first identifier code to be parsed as 08810012345678 / abc123.
[0173] a2. The base station sends the first identifier code to be parsed to the UPF, and the UPF receives the first identifier code to be parsed accordingly.
[0174] For example, the first identifier could be 08810012345678 / abc123.
[0175] a3. UPF stores the first identifier in the first cache.
[0176] In some embodiments, there are multiple first caches, and one first cache is used to store the identification codes of the same batch. Based on the composition of the first identification code, the target first cache corresponding to the first identification code is determined from the multiple first caches.
[0177] For example, after receiving the first identifier code 08810012345678 / abc123, the UPF compares the first identifier code 08810012345678 / abc123 with the existing first cache area, finds the identifier of the first cache area as 08810012345678, and after determining the first cache area, stores the first identifier code 08810012345678 / abc123 in the first cache area.
[0178] For example, after receiving the first identifier 08810012345678 / abc123, if the UPF does not find the first cache with the identifier 08810012345678, it will create a new first cache (identified as 08810012345678) and store the first identifier 08810012345678 / abc123 in the newly created first cache.
[0179] For example, after receiving the first identifier 08810012345678 / abc123, if the UPF does not find the first cache area identified as 08810012345678 and the number of first cache areas reaches a preset threshold, the first identifier 08810012345678 / abc123 is placed into the alternative cache area (an alternative cache area is set up in the UPF).
[0180] a4. Under the condition that the preset conditions are met, the UPF sends a first request message to the identifier node, and the identifier node receives the first request message accordingly.
[0181] For example, when the number or capacity of the cache containing 08810012345678 / abc123 reaches the upper limit, the UPF will send the identifier code of the cache containing 08810012345678 / abc123 to the identifier node.
[0182] In some embodiments, while sending the first request message to the identifier node, the UPF also sends the identifier code to be parsed in the cache to the local server.
[0183] a5. The identifier node parses multiple identifier codes.
[0184] For example, the identification node receives multiple identification codes in the cache area where 08810012345678 / abc123 is located, parses the multiple identification codes, and obtains the identification information corresponding to the multiple identification codes.
[0185] a6. The identifier node sends the identifier information corresponding to each of the multiple identifier codes to the UPF, and the UPF receives the identifier information corresponding to each of the multiple identifier codes.
[0186] a7. The UPF sends multiple identifier codes to the local server, each corresponding to its own identifier information. The local server receives the identifier information corresponding to each of the multiple identifier codes.
[0187] In some embodiments, if the local server does not receive the 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 multiple identification codes to be parsed and is used to request the identification node to query the identification information of the multiple identification codes to be parsed. The identification node may 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 the identification information corresponding to each of the multiple identification codes.
[0189] For example, the identification information corresponding to each of the multiple identification codes is stored on a local server. If you need to view the identification information of the parsed identification code, you can query it directly on the local server.
[0190] In some embodiments, the relevant functions of the UPF can be migrated to the base station, that is, a buffer is set up in the base station to store the identifier code to be parsed, and then sent to the UPF in a unified manner, which can alleviate the pressure on the UPF.
[0191] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.
[0192] In some embodiments, this application also provides an identifier resolution apparatus. The identifier resolution apparatus may include one or more functional modules for implementing the identifier resolution method of the above method embodiments.
[0193] For example, Figure 9 This is a schematic diagram illustrating the composition of an identifier resolution device provided in an embodiment of this application. Figure 9 As shown, the identifier parsing device 800 is applied to a UPF. The UPF includes a first buffer for storing identifier codes to be parsed, and includes 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 identifier code to be parsed sent by the base station; the processing module 802 is used to store the first identifier code in a first buffer; and the sending module 803 is used to send a first request message to the identifier node when a preset condition is met. The first request message includes multiple identifier codes to be parsed stored in the first buffer. The first request message is used to request the identifier node to parse the multiple identifier codes to obtain the identifier information corresponding to each of the multiple identifier codes.
[0195] In other embodiments, the preset conditions include at least one of the following: the number of identifier codes to be parsed stored in the first cache is greater than or equal to a first preset number; the storage capacity occupied by the identifier codes to be parsed stored in the first cache is greater than or equal to a first preset capacity.
[0196] In some other embodiments, there are multiple first caches, and one first cache is used to store the identification codes of the same batch; the processing module 802 is also used to determine the target first cache corresponding to the first identification code from the multiple first caches 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.
[0197] In some other embodiments, the identifier includes a first character and a second character; the first character is used to indicate the common information of the identifier, and the second character is used to indicate the unique identification information of the identifier; the first character of the identifiers in the same batch is the same; the identifier of the cache area is the first character of the identifiers in the same batch that are configured to be stored in the cache area; the processing module 802 is specifically used to match the first character of the first identifier with the identifiers of multiple first cache areas to determine the first target cache area corresponding to the first identifier, wherein the identifier of the first target cache area is the same as the first character of the first identifier.
[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 in the same batch is the same; the processing module 802 is specifically used to store the second character of the first identification code in a first cache area.
[0199] In some other embodiments, the receiving module 801 is further configured 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 configured to send the identification information corresponding to each of the multiple identification codes to the local server.
[0200] In some other embodiments, the UPF further includes a second buffer for storing parsed identifier codes; the processing module 802 is specifically used to send a synchronization message to the local server, the synchronization message including multiple identifier codes to be parsed, the synchronization message being used to indicate that the multiple identifier codes to be parsed are being parsed.
[0201] In some other embodiments, the first identifier is multiple identifiers.
[0202] See Figure 10 This is a schematic diagram of another identifier resolution device provided in an embodiment of this application. The identifier resolution device 500 can be applied to a base station. The base station includes a third buffer for storing identifier 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 identifier code to be parsed sent by the terminal; the processing module 502 is used to store the identifier code in a third buffer; and the sending module 503 is used to send the multiple identifier codes to be parsed stored in the third buffer to the UPF when a preset condition is met, so that the UPF sends a query request to the identifier node based on the multiple identifier codes to be parsed. The query request includes the multiple identifier codes to be parsed and is used to request the identifier node to parse the multiple identifier codes to obtain the identifier information corresponding to each of the multiple identifier codes.
[0204] In other embodiments, the preset conditions include at least one of the following: the number of identifier codes to be parsed stored in the third cache is greater than or equal to the first preset number; the storage capacity occupied by the identifier codes to be parsed stored in the third cache is greater than or equal to the first preset capacity.
[0205] In other embodiments, there are multiple third caches, and one third cache is used to store the identification codes of the same batch; the processing module 502 is also used to determine the target third cache corresponding to the identification code from the multiple third caches 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.
[0206] In other embodiments, the identifier includes a first character and a second character; the first character is used to indicate the common information of the identifier, and the second character is used to indicate the unique identification information of the identifier; the first character of the identifiers in the same batch is the same; the identifier of the cache area is the first character of the identifiers in the same batch that are configured to be stored in the cache area; the processing module 502 is specifically used to match the first character of the identifier with the identifiers of multiple third cache areas to determine the target third cache area corresponding to the first identifier, wherein the identifier of the target third cache area is the same as the first character of the identifier.
[0207] In other embodiments, 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 in the same batch is the same; the processing module 502 is specifically used to store the second character of the identification code in a third cache area.
[0208] See Figure 11 This is a schematic diagram of another identifier resolution device provided in an embodiment of this application. The identifier 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 configured to receive a synchronization message sent by the UPF, the synchronization message including multiple identifier codes to be parsed, the synchronization message indicating that the multiple identifier codes to be parsed are being parsed; it is also configured to receive the identification information corresponding to each of the multiple identifier codes to be parsed sent by the UPF; the identification information corresponding to each of the multiple identifier codes is obtained by the UPF requesting the identification node to parse the multiple identifier codes in a single parsing request; if the identification information corresponding to each of the multiple identifier codes to be parsed is not received within a second preset time period, the sending module 602 is configured to send a second request message to the identification node, the second request message including the multiple identifier codes to be parsed, the second request message requesting the identification node to query the identification information of the multiple identifier codes to be parsed; the receiving module 601 is also configured to receive a second response message sent by the identification node, the second response message including the identification information corresponding to each of the multiple identifier codes.
[0210] In the case of implementing the functions of the integrated modules described above in hardware, this embodiment of the invention provides a possible structural schematic diagram of the electronic device involved in the above embodiments. For example... Figure 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 also include a memory 901.
[0211] Processor 902 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 902 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), 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 this application. Processor 902 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0212] The communication interface 903 is used to connect to other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0213] The memory 901 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0214] In one possible implementation, the memory 901 can exist independently of the processor 902. The memory 901 can be connected to the processor 902 via a bus 904 and is used to store instructions or program code. When the processor 902 calls and executes the instructions or program code stored in the memory 901, it can implement the identifier resolution method provided in this embodiment of the invention.
[0215] In another possible implementation, the memory 901 can also be integrated with the processor 902.
[0216] The 904 bus can be an extended industry standard architecture (EISA) bus, etc. The 904 bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 12 It is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0217] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above 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] This application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware. The program can be stored in the aforementioned computer-readable storage medium, and when executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be any of the foregoing embodiments or memory. The aforementioned computer-readable storage medium can also be an external storage device of the aforementioned service invocation device, such as a pluggable hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the aforementioned service invocation device. Further, the aforementioned computer-readable storage medium can include both internal storage units of the aforementioned service invocation device and external storage devices. The aforementioned computer-readable storage medium is used to store the aforementioned computer program and other programs and data required by the aforementioned service invocation device. The aforementioned computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
[0219] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute any of the identifier resolution methods provided in the above embodiments.
[0220] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for resolving identifiers, characterized in that, Applied to User Plane Function (UPF), the UPF includes a first buffer for storing identifier codes to be parsed; the method includes: Receive the first identifier code to be parsed sent by the base station; Store the first identifier in the first cache area; Under the condition of satisfying the first preset condition, a first request message is sent to the identifier node. The first request message includes multiple identifier codes to be parsed stored in the first cache area. The first request message is used to request the identifier node to parse the multiple identifier codes to obtain the identifier information corresponding to each of the multiple identifier codes.
2. The method according to claim 1, characterized in that, The preset conditions include at least one of the following: The number of identifier codes to be parsed stored in the first cache is greater than or equal to a first preset number; The storage capacity occupied by the identifier code to be parsed stored in the first cache area is greater than or equal to the first preset capacity.
3. The method according to claim 1, characterized in that, The first cache area is multiple, and one first cache area is used to store the identification codes of the same batch; the method further includes: Based on the composition of the first identifier, the target first cache corresponding to the first identifier is determined from a plurality of first caches; The step of storing the first identifier code in the first cache area includes: The first identifier is stored in the first cache area of the target.
4. The method according to claim 3, characterized in that, The identifier includes a first character and a second character; the first character is used to indicate the public information of the identifier, and the second character is used to indicate the unique identification information of the identifier; the first character of the identifiers in the same batch is the same; the identifier of the cache is the first character of the identifiers in the same batch that are configured to be stored in the cache. Based on the composition of the first identifier, determining the target first cache corresponding to the first identifier from a plurality of first caches includes: Based on the first character of the first identifier code, the identifiers of multiple first cache areas are matched to determine the target first cache area corresponding to the first identifier code, wherein the identifier of the target first cache area is the same as the first character of the first identifier 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 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 code of the same batch is the same; The step of storing the first identifier code in the first cache area includes: The second character of the first identifier is stored in the first cache.
6. The method according to claim 1, characterized in that, The method further includes: Receive a first response message sent by the identification node, the first response message including identification information corresponding to each of the plurality of identification codes; The identification information corresponding to each of the multiple identification codes is sent to the local server.
7. The method according to claim 6, characterized in that, The UPF also includes a second buffer for storing the parsed identifier code; The step of storing the first identifier code in the first cache area includes: If the parsed identifier stored in the second cache does not include the first identifier, the first identifier is stored in the first cache.
8. The method according to claim 1, characterized in that, While sending the first request message to the identifier node, the method further includes: A synchronization message is sent to the local server. The synchronization message includes the multiple identifier codes to be parsed, and the synchronization message is used to indicate that the multiple identifier codes to be parsed are being parsed.
9. The method according to claim 1, characterized in that, The first identifier is multiple identifiers.
10. A method for resolving identifiers, characterized in that, Applied to a base station, the base station includes a third buffer for storing the identifier code to be parsed; the method includes: The identifier code to be parsed sent by the receiving terminal; The identification code is stored in the third cache area; Under preset conditions, the UPF sends multiple identifier codes to be parsed stored in the third buffer, so that the UPF sends a query request to the identifier node based on the multiple identifier codes to be parsed. The query request includes the multiple identifier codes to be parsed and is used to request the identifier node to parse the multiple identifier codes to obtain the identifier information corresponding to each of the multiple identifier codes.
11. The method according to claim 10, characterized in that, The preset conditions include at least one of the following: The number of identifier codes to be parsed stored in the third cache is greater than or equal to the first preset number; The storage capacity occupied by the identifier code 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, The third cache may be multiple, and one third cache may be used to store the identification codes of the same batch; the method further includes: Based on the composition of the identification code, the target third cache corresponding to the identification code is determined from the plurality of third caches; The step of storing the identifier code in the third cache includes: The identification code is stored in the target third cache area.
13. The method according to claim 12, characterized in that, The identifier includes a first character and a second character; the first character is used to indicate the public information of the identifier, and the second character is used to indicate the unique identification information of the identifier; the first character of the identifiers in the same batch is the same; the identifier of the cache is the first character of the identifiers in the same batch that are configured to be stored in the cache. Based on the composition of the identifier code, determining the target third cache corresponding to the identifier code from among the multiple third caches includes: Based on the first character of the identifier code, the identifiers of multiple third cache areas are matched to determine the target third cache area corresponding to the identifier code, wherein the identifier of the target third cache area is the same as the first character of the identifier 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 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 code is the same for the same batch; The step of storing the identifier code in the third cache includes: The second character of the identifier is stored in the third cache.
15. A method for resolving identifiers, characterized in that, Applied to a local server, the method includes: Receive a synchronization message sent by UPF, the synchronization message including multiple identifier codes to be parsed, the synchronization message being used to indicate that the multiple identifier codes to be parsed are being parsed; The system receives the identification information corresponding to each of the multiple identifier codes to be parsed from the UPF; the identification information corresponding to each of the multiple identifier codes is obtained by the UPF requesting the identifier node to parse the multiple identifier codes in a single parsing request; or... If no identification information corresponding to each of the multiple identification codes to be parsed is received within a second preset time period, a second request message is sent to the identification node. The second request message includes the multiple identification codes to be parsed and is used to request the identification node to query the identification information of the multiple identification codes to be parsed. The system receives a second response message sent by the identification node, the second response message including identification information corresponding to each of the plurality of identification codes.
16. An electronic device, characterized in that, It includes a processor and a memory, the processor being coupled to the memory; the memory is used to store computer instructions, which are loaded and executed by the processor to enable the computer device to implement the identifier 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 that, when executed on a computer, cause the computer to perform the identifier 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 that, when run on an electronic device, causes the electronic device to perform the identifier 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