CN113556407B - Interface calling method and device for identification analysis node and electronic equipment - Google Patents

Interface calling method and device for identification analysis node and electronic equipment Download PDF

Info

Publication number
CN113556407B
CN113556407B CN202111110523.8A CN202111110523A CN113556407B CN 113556407 B CN113556407 B CN 113556407B CN 202111110523 A CN202111110523 A CN 202111110523A CN 113556407 B CN113556407 B CN 113556407B
Authority
CN
China
Prior art keywords
analysis
interface
round
trip delay
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111110523.8A
Other languages
Chinese (zh)
Other versions
CN113556407A (en
Inventor
谢家贵
马思杰
李志平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Academy of Information and Communications Technology CAICT
Original Assignee
China Academy of Information and Communications Technology CAICT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Academy of Information and Communications Technology CAICT filed Critical China Academy of Information and Communications Technology CAICT
Priority to CN202111110523.8A priority Critical patent/CN113556407B/en
Publication of CN113556407A publication Critical patent/CN113556407A/en
Application granted granted Critical
Publication of CN113556407B publication Critical patent/CN113556407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/101Server selection for load balancing based on network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0864Round trip delays

Abstract

The embodiment of the application provides an interface calling method and device of an identification analysis node and electronic equipment, wherein the method is applied to a recursion analysis node in an identification analysis system, and comprises the steps of firstly, obtaining each analysis interface of the identification analysis node to which a prefix of a target identification belongs, and calculating the current first round-trip delay of each analysis interface; and under the condition of receiving an identification analysis request aiming at the target identification, calling a first analysis interface in each analysis interface to process the analysis request according to the size relation of the first round-trip delay of each analysis interface, wherein the first analysis interface is different from a second analysis interface called last time or the first analysis interface is the analysis interface with the minimum current first round-trip delay in each analysis interface. The method and the device can be called according to the size relation of the first round-trip time delay of each analysis interface, so that the balanced load of each analysis interface is ensured, and the overlarge pressure of a single analysis interface is avoided.

Description

Interface calling method and device for identification analysis node and electronic equipment
Technical Field
The application relates to the technical field of industrial internet identification, in particular to an interface calling method and device of an identification analysis node and electronic equipment.
Background
The industrial internet identification analysis system is composed of identification analysis nodes and recursion analysis nodes, wherein the identification analysis nodes comprise country top level nodes, second level nodes, enterprise nodes and the like. In the mark analysis nodes with different priorities, such as country top level nodes, second level nodes, enterprise nodes and the like, each mark analysis node may correspond to a plurality of analysis servers, and the IP address and the port of each analysis server form an analysis interface of the analysis server.
At present, after an identifier resolution request is received, a recursion resolution node generally randomly calls a resolution interface of a resolution service node to process the identifier resolution request so as to obtain resolution information of an identifier, and this way cannot guarantee load balance of the resolution interface, which easily causes an overlarge load of a single resolution interface.
Disclosure of Invention
The embodiment of the application provides an interface calling method and device for identifying an analysis node and electronic equipment, and is used for solving the problem that the load balance of each analysis interface cannot be guaranteed in the conventional analysis interface calling mode.
According to a first aspect of the embodiments of the present application, there is provided an interface calling method for an identifier resolution node, which is applied to a recursive resolution node in an identifier resolution system, where the recursive resolution node is in communication connection with the identifier resolution node, the identifier resolution node includes a plurality of resolution interfaces, and the method includes:
acquiring each analysis interface of an identification analysis node to which a prefix of a target identification belongs, and determining the current round-trip delay of each analysis interface as the first round-trip delay of the analysis interface, wherein the target identification is an industrial internet identification cached by the recursive analysis node;
and under the condition of receiving an identification analysis request aiming at the target identification, calling a first analysis interface in each analysis interface to process the analysis request according to the magnitude relation of first round-trip delay of each analysis interface, wherein the first analysis interface is different from a second analysis interface called aiming at the identification analysis request last time or the first analysis interface is the analysis interface with the minimum current first round-trip delay in each analysis interface.
According to a second aspect of the embodiments of the present application, there is provided an interface calling apparatus for an identifier resolution node, which is applied to a recursive resolution node in an identifier resolution system, where the recursive resolution node is in communication connection with the identifier resolution node, the identifier resolution node includes a plurality of resolution interfaces, and the apparatus includes:
the calculation module is used for acquiring each analysis interface of an identification analysis node to which a prefix of a target identification belongs, and determining the current round-trip delay of each analysis interface as the first round-trip delay of the analysis interface, wherein the target identification is an industrial internet identification cached by the recursive analysis node;
and the interface calling module is used for calling a first analysis interface in each analysis interface to process the analysis request according to the magnitude relation of the first round-trip delay of each analysis interface when the identification analysis request aiming at the target identification is received, wherein the first analysis interface is different from a second analysis interface called aiming at the identification analysis request last time or the first analysis interface is the analysis interface with the minimum current first round-trip delay in each analysis interface.
According to a third aspect of embodiments of the present application, there is provided an electronic apparatus, including: the device comprises a processor, a memory and a bus, wherein the memory stores machine readable instructions executable by the processor, when the electronic device runs, the processor and the memory are communicated through the bus, and the machine readable instructions are executed by the processor to execute the interface calling method for identifying the resolving node.
According to a fourth method of the embodiments of the present application, a storage medium is provided, where a computer program is stored on the storage medium, and the computer program is executed by a processor to perform the interface calling method for identifying a parsing node.
The embodiment of the application provides an interface calling method and device of an identification analysis node and electronic equipment, wherein the method is applied to a recursion analysis node in an identification analysis system, the recursion analysis node is in communication connection with the identification analysis node, each analysis interface of the identification analysis node to which a prefix of a target identification belongs is obtained firstly, and the current round-trip delay of each analysis interface is determined as the first round-trip delay of the analysis interface; and under the condition of receiving an identification analysis request aiming at the target identification, calling a first analysis interface in each analysis interface to process the analysis request according to the magnitude relation of first round-trip delay of each analysis interface, wherein the first analysis interface is different from a second analysis interface called aiming at the identification analysis request last time or the first analysis interface is the analysis interface with the minimum current first round-trip delay in each analysis interface. According to the method and the device, when the analysis interface is called each time, calling can be carried out according to the size relation of the first round trip delay of each analysis interface, so that the balanced load of each analysis interface is ensured, and the overlarge pressure of a single analysis service interface is avoided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram of a logical framework of an industrial Internet identity resolution system;
FIG. 2 is a process diagram of an identity resolution service;
fig. 3 is one of flowcharts of an interface calling method for identifying a resolution node according to an embodiment of the present application;
fig. 4 is a second flowchart of an interface calling method for identifying a resolution node according to an embodiment of the present application;
fig. 5 is a functional block diagram of an interface invocation apparatus for identifying a resolution node according to an embodiment of the present application;
fig. 6 is a schematic view of an electronic device provided in an embodiment of the present application.
Detailed Description
Firstly, it is worth explaining that the industrial internet identification analysis system mainly comprises an identification distribution management system and an identification analysis system, wherein the identification is an 'identity card' of a machine and an article, has uniqueness, and is managed in a hierarchical mode of step-by-step distribution. The identification analysis system utilizes the identification to position and inquire information of the machine and the article, which is the premise and the basis for realizing the accurate butt joint of the global supply chain system and the enterprise production system, the full life cycle management of the product and the intelligent service. By building a set of perfect identification analysis system, powerful support can be provided for industrial system interconnection and industrial data transmission and exchange, interconnection and intercommunication of industrial elements such as design, research, development, production, sales and service of industrial products are really realized, and the cooperation efficiency is improved.
The industrial internet identification analysis system is composed of elements such as an international root node, a national top level node, a secondary node, an enterprise node, a public recursive analysis node and the like, as shown in fig. 1, fig. 1 is a schematic diagram of a logic framework of the industrial internet identification analysis system. The international root node is a service node of the highest level of the identification and analysis system, is not limited to a specific country or region, and provides public root zone data management and root analysis service for the global scope.
The national top-level node is an international gateway interconnected to the outside, is a core hub integrated to the inside, is a top-level identification service node in a country or a region, and can provide top-level identification analysis service, identification filing, identification authentication and other management capabilities for the national range. The national top level node is communicated with international root nodes of various identification analysis systems and is also communicated with various second-level and other identification service nodes below the national top level node.
The secondary node is an identification analysis public service node in an industry or region, and can provide identification code registration and identification analysis services for the industry or region, complete relevant identification service management, identification application docking and the like. The secondary node is not only upwards butted with the national top level node, but also downwards distributes identification codes for industrial enterprises, provides identification registration, identification analysis, identification data service and the like, and simultaneously meets the requirements on safety, stability, expansibility and the like. Each secondary node is assigned a unique secondary node identification prefix by the national top level node.
The enterprise node is an identification analysis service node in an enterprise, and can provide identification code registration and identification analysis service for a specific enterprise. The enterprise nodes can be independently deployed and can also be used as the constituent elements of an enterprise information system. Each enterprise node is allocated with a unique enterprise node identification prefix by a secondary node, the content of the identification suffix is defined and allocated by an enterprise, and the enterprise node identification prefix and the identification suffix form a complete industrial internet identification.
The public recursion analysis node is a key entry facility of the identification analysis system, and the whole service performance can be improved through technical means such as caching. When an identifier analysis request of a client is received, a public recursion analysis node firstly checks whether a local cache has a query result of the identifier, if not, the public recursion analysis node queries through a response path returned by an identifier analysis server until an address or information associated with the identifier is finally queried, returns the address or information to the client and caches the request result.
The query trigger of the identifier resolution service can come from many different forms such as an enterprise information system, an industrial internet platform, an industrial internet APP and the like. In other words, the enterprise information system, the industrial internet platform, the industrial internet APP, and the like can serve as a client to send a query request to the public recursive analytic node, after receiving the query request, the public recursive analytic node first queries the identifier in the analytic server of the top level node of the country and returns address information of the second level node of the identifier to the public recursive analytic node, the public recursive analytic node queries the analytic server of the second level node according to the address information and receives address information of the enterprise node returned by the second level node, the public recursive analytic node queries the identifier in the analytic server of the enterprise node according to the address information of the enterprise node and receives identifier analytic information returned by the enterprise node, and the public recursive analytic node returns the identifier analytic information to the client. Fig. 2 is a process diagram of an identity resolution service, as shown in fig. 2.
In the application, the country top-level node, the second-level node, and the enterprise node are all identification resolution nodes, and can process an identification resolution request sent by a recursive resolution node (i.e., a public recursive resolution node), and return a processing result (i.e., queried address information) to the recursive resolution node.
Each identifier resolution node generally corresponds to a plurality of resolution servers, and the IP address and the port of each resolution server form a resolution interface of the resolution server, that is, one identifier resolution node includes a plurality of resolution interfaces.
The inventor finds in research that, at present, after receiving an identifier resolution request, a recursive resolution node usually randomly calls a resolution interface of a resolution service node to process the identifier resolution request to obtain resolution information of an identifier, and this way cannot guarantee load balance of the resolution interface, which easily causes an excessive load on a single resolution interface.
In view of the above problems, an embodiment of the present application provides an interface calling method and apparatus for an identifier resolution node, where the method is applied to a recursive resolution node in an identifier resolution system, where the recursive resolution node is in communication connection with the identifier resolution node, and first obtains each resolution interface of the identifier resolution node to which a prefix of a target identifier belongs, and determines a current round-trip delay of each resolution interface as a first round-trip delay of the resolution interface; when an identifier analysis request aiming at the target identifier is received, calling a first analysis interface in each analysis interface to process the analysis request according to the magnitude relation of the first round-trip delay of each analysis interface, wherein the first analysis interface is different from a second analysis interface called aiming at the identifier analysis request last time. According to the method and the device, when the analysis interface is called every time, calling can be carried out according to the size relation of the first round-trip delay of each analysis interface, and the first analysis interface called this time and the second analysis interface called last time are not the same, so that the balanced load of each analysis interface is guaranteed, and the overlarge pressure of a single analysis service interface is avoided.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 3, fig. 3 is a flowchart of an interface calling method for identifying a resolution node according to an embodiment of the present application. The method is applied to a recursive analysis node in an identification analysis system, the recursive analysis node is in communication connection with the identification analysis node, the identification analysis node comprises a plurality of analysis interfaces, and the method comprises the following steps:
step S11, obtaining each parsing interface of the identifier parsing node to which the prefix of the target identifier belongs, and determining the current round-trip delay of each parsing interface as the first round-trip delay of the parsing interface.
And the target identification is an industrial internet identification cached by the recursive resolution node.
Step S12, when receiving an identifier parsing request for the target identifier, invoking a first parsing interface of each parsing interface to process the parsing request according to a magnitude relationship of a first round-trip delay of each parsing interface.
The first analysis interface is different from a second analysis interface called for the identifier analysis request last time or the first analysis interface is the current analysis interface with the minimum first round-trip delay in each analysis interface.
Optionally, in this embodiment, first round-trip delay of each parsing interface is obtained, and when an identifier parsing request for the target identifier is received, it is further required to determine whether the current target identifier is cached in the recursive parsing node, and if the target identifier is not cached in the recursive parsing node, it is required to call the parsing interface to process the identifier parsing request for the target identifier. In this embodiment, the first analysis interface called this time is determined according to the magnitude relationship of the first round-trip delay of each analysis interface, so as to ensure balanced load of each analysis interface and avoid excessive pressure of a single analysis service interface.
Optionally, in this embodiment, the obtaining each parsing interface of the identifier parsing node to which the prefix of the target identifier belongs, and determining a first round-trip delay of each parsing interface includes:
sending an interface acquisition request to an upper-level identification analysis node to which the prefix of the target identification belongs according to a preset time interval so as to acquire each analysis interface of the identification analysis node to which the prefix of the target identification belongs; sending an identification analysis request to each acquired analysis interface; and determining the difference value between the time of sending the identifier analysis request and the time of receiving a request processing result returned by the analysis interface as the first round-trip delay of the analysis interface.
In this embodiment, the recursion resolution node sends a request to the upper-level identifier resolution node to which the prefix information belongs according to the prefix information of the currently cached identifier at a preset time interval (for example, every 30 minutes), so as to obtain all resolution interfaces of the identifier resolution node corresponding to the prefix information of the identifier.
For example, if the identified prefix information belongs to a second-level node, the recursive analysis node sends a request to a previous node of the second-level node, that is, a top-level node of the country, every 30 minutes to obtain all analysis interfaces of the second-level node, and at this time, the second-level node is the identified analysis node in the embodiment of the present application.
After acquiring the analysis interface of the identification analysis node, the recursion analysis node sends an analysis request to all analysis service interfaces, records the Time (namely Round-Trip Time, RTT) required by each analysis interface for sending and processing the analysis request and returning the processing result to the recursion analysis node, and determines the difference between the Time for sending the identification analysis request and the Time for receiving the request processing result returned by the analysis interface as the first Round-Trip Time delay of the analysis interface.
When an identification analysis request sent by a client is received, the recursive analysis node calls a first analysis interface to process the identification analysis request according to the magnitude relation of the first round-trip delay of each analysis interface, and the called first analysis interface is different from a second analysis interface called for the identification analysis request at the last time.
Optionally, in an implementation manner of this embodiment, step S12 includes:
and polling and calling each analysis interface in turn according to the sequence of the first round-trip delay of each analysis interface from small to large so as to ensure that the first analysis interface called this time is different from the second analysis interface called last time.
In the above step, for example, assuming that the identifier resolution node includes four resolution interfaces in an order of A, B, C, D where round-trip delays are from small to large, the four resolution interfaces are sequentially called according to the order of A, B, C, D when the resolution interfaces are called, if the recursive resolution node calls the resolution interface a this time for processing the identifier resolution request, and when the identifier resolution request is received next time, the recursive resolution node calls the resolution interface B for processing, so that it is ensured that the resolution interface called each time is not the same as the resolution interface called last time, and thus it is ensured that the loads of the resolution interfaces are balanced.
Optionally, in another implementation manner of this embodiment, when the first parsing interface is the parsing interface with the smallest current first round-trip delay among the parsing interfaces, the method further includes:
and updating the first round-trip delay of the first analysis interface after the first analysis interface completes one-time processing of the identifier analysis request.
In the above step, for example, assuming that the identifier resolution node includes four resolution interfaces in the order of A, B, C, D, where the round trip delays of the resolution interface A, B, C, D are 2ms, 5ms, 6ms, and 10ms, respectively, when the first resolution interface is called, the resolution interface with the smallest round trip delay, i.e., resolution interface a, is called from A, B, C, D. And calling the analysis interface A at the recursive analysis node, and updating the round-trip delay of the analysis interface A through a round-trip delay updating algorithm after the identification analysis request is processed, wherein the round-trip delay of the analysis interface A is assumed to be 8ms after being updated. When the identifier resolution request is received next time, the resolution interface with the smallest round trip delay, i.e., resolution interface B, is called again according to the latest round trip delay of the resolution interface A, B, C, D.
Optionally, in an implementation manner, after the first parsing interface completes one processing of the identifier parsing request, updating the first round-trip delay of the first parsing interface includes:
after the first analysis interface completes the processing of the identifier analysis request once, determining that the first analysis interface completes the second round-trip delay of the identifier analysis request this time and the first analysis interface completes the third round-trip delay of the last identifier analysis request;
calculating a fourth round-trip delay of the first analysis interface according to the second round-trip delay and the third round-trip delay of the first analysis interface;
updating the first round trip delay of the first parsing interface to the fourth round trip delay.
In the above step, assuming that the second round-trip delay (i.e. the time required for responding to the identifier analysis request of this time) when the analysis interface a completes the identifier analysis request of this time is 3ms, and the third round-trip delay when the identifier analysis request of the last time is completed is 2ms, the round-trip delay of the analysis interface a may be updated according to the second round-trip delay of 3ms and the third round-trip delay of 2ms, so as to obtain the fourth round-trip delay.
Optionally, the round trip delay may be updated according to a weighted average method, and a weight is set for the second round trip delay and the third round trip delay respectively, and if the weight of the second round trip delay is 0.4, the weight of the third round trip delay is 0.6, then the fourth round trip delay = 0.4+ 0.6=2.4ms, and then the fourth round trip delay 2.4ms is the first round trip delay after the update of the analysis interface a.
Optionally, if the identifier resolution request processing is first identifier resolution request processing after obtaining each resolution interface of an identifier resolution node to which a prefix of a target identifier belongs, updating a first round-trip delay of the first resolution interface after the first resolution interface completes the identifier resolution request processing once, including:
after the first analysis interface finishes the processing of obtaining the identifier analysis request, calculating a fourth round-trip delay of the first analysis interface according to a first round-trip delay of the first analysis interface and a second round-trip delay of the first analysis interface finishing the first identifier analysis request; updating the first round trip delay of the first parsing interface to the fourth round trip delay.
In the above step, the first processing of the identifier resolution request means that the recursive resolution node receives the identifier resolution request sent by the client for the first time after acquiring each resolution node. When the called first analysis interface completes the processing of the first identifier analysis request, the first analysis interface does not have the round-trip delay record of the last identifier analysis request, therefore, when the first round-trip delay of the first analysis interface is updated, the fourth round-trip delay of the first analysis interface is directly calculated based on the first round-trip delay when the first analysis interface is called and the second round-trip delay required by the completion of the identifier analysis request, and the first round-trip delay of the first analysis interface is updated to be the fourth round-trip delay, wherein the first round-trip delay refers to the current round-trip delay of the first analysis interface when the identifier analysis request is received for processing.
For example, if the first round-trip delay of the analysis interface a when being called is 2ms, and the second round-trip delay of the analysis interface a when processing the current identifier analysis request is 3ms, the fourth round-trip delay is calculated according to the first round-trip delay and the second round-trip delay. Optionally, a weight is set for the first round trip delay and the second round trip delay respectively, and assuming that the weight of the first round trip delay is 0.4, and the weight of the second round trip delay is 0.6, the fourth round trip delay = 0.4+ 0.6=2.4ms, and the fourth round trip delay 2.4ms is the updated first round trip delay of the analysis interface a.
Optionally, in another embodiment, after the first parsing interface completes one processing of the identifier parsing request, updating the first round-trip delay of the first parsing interface includes:
and after the first analysis interface completes one-time processing of the identifier analysis request, increasing the first round-trip delay of the first analysis interface according to a preset proportion.
In the above step, assuming that the first round-trip delay of the analysis interface a is 2ms and the preset proportion is 3%, after the recursive analysis node calls the analysis interface a to complete one identifier analysis request, the first round-trip delay of the analysis interface a is increased by 3%, and the increased round-trip delay =2 x (1 + 3%) =2.06 ms. Therefore, the first round trip delay after the update of the analytic interface a is 2.06 ms.
After the first round-trip delay of the called first analysis interface is updated through the two round-trip delay updating algorithms, the analysis interface with the minimum round-trip delay is called according to the updated first round-trip delay, so that the round-trip delay of the called first analysis interface is always the minimum value, the optimal analysis interface can be called when the analysis interface is called next time, and the overall efficiency of identification analysis is improved.
Optionally, referring to fig. 4, fig. 4 is a second flowchart of an interface invoking method for identifying a parsing node according to the embodiment of the present application, where before step S12, the method further includes:
and step S13, removing the parsing interface with the first round-trip delay exceeding the preset range.
In this embodiment, before sorting the parsing interfaces, the parsing interfaces with an excessive first round trip delay or an abnormal response may be removed. For example, if the preset range is (1 ms to 20 ms), all the analysis interfaces whose first round-trip delay is not within 1ms to 20ms need to be screened.
Optionally, in this embodiment, before step S12, the method further includes: and if the current first round-trip delay of each analysis interface exceeds the preset range, re-executing each analysis interface of the identification analysis node to which the prefix of the acquired target identification belongs, and determining the current round-trip delay of each analysis interface as the first round-trip delay of the analysis interface.
It should be noted that, in this embodiment, the recursion resolution node may obtain all resolution interfaces of the identification resolution node once every 30 minutes, within the 30 minutes, the recursion resolution node may receive multiple identification resolution requests, and call the corresponding resolution interfaces to process the identification resolution requests, and after the processing is completed, update the round trip delay of the called resolution interfaces. After 30 minutes, the recursive analysis node re-acquires all the analysis interfaces identifying the analysis node, and re-calculates the first round-trip delay of each analysis interface.
Optionally, in an implementation manner of this embodiment, after updating the round trip delay of the invoked parsing interface each time, the parsing interface with the excessively large round trip delay or an abnormal response may be removed first, and the sorting may be performed based on other parsing interfaces from which the round trip delay abnormal or excessively large parsing interface is removed. At this time, it may happen that the resolution interface list is already empty before the time of reacquiring all resolution interfaces of the identification resolution node (i.e., when 30 minutes has not been reached), in which case, even if the time interval from the last acquisition of all resolution interfaces of the identification resolution node is less than 30 minutes, the recursive resolution node may still actively send a request to acquire all resolution interfaces of the identification resolution node.
In another implementation manner of this embodiment, if the first round trip delay of all the parsing interfaces exceeds the preset range, which indicates that the first round trip delay of the parsing interfaces is not accurate enough, at this time, the step corresponding to S11 needs to be executed again.
To sum up, the embodiment of the present application provides an interface calling method, an interface calling device, and an electronic device for an identifier resolution node, where the method is applied to a recursive resolution node in an identifier resolution system, where the recursive resolution node is in communication connection with the identifier resolution node, and first obtains each resolution interface of the identifier resolution node to which a prefix of a target identifier belongs, and determines a current round-trip delay of each resolution interface as a first round-trip delay of the resolution interface; when an identifier analysis request aiming at the target identifier is received, calling a first analysis interface in each analysis interface to process the analysis request according to the magnitude relation of the first round-trip delay of each analysis interface, wherein the first analysis interface is different from a second analysis interface called aiming at the identifier analysis request last time. According to the method and the device, when the analysis interface is called every time, calling can be carried out according to the size relation of the first round-trip delay of each analysis interface, and the first analysis interface called this time and the second analysis interface called last time are not the same, so that the balanced load of each analysis interface is guaranteed, and the overlarge pressure of a single analysis service interface is avoided.
Referring to fig. 5, fig. 5 is a functional block diagram of an interface calling device 110 for identifying a resolution node according to an embodiment of the present application. In this embodiment, the interface calling device 110 for identifying the parsing node includes:
a calculation module 1101, configured to obtain each analysis interface of an identifier analysis node to which a prefix of a target identifier belongs, and determine a current round-trip delay of each analysis interface as a first round-trip delay of the analysis interface, where the target identifier is an industrial internet identifier cached by the recursive analysis node;
the interface calling module 1102 is configured to, when an identifier parsing request for the target identifier is received, call a first parsing interface in each parsing interface to process the parsing request according to a size relationship of a first round-trip delay of each parsing interface, where the first parsing interface is different from a second parsing interface called for the identifier parsing request last time or the first parsing interface is a parsing interface with a current first round-trip delay of each parsing interface being the smallest.
Fig. 6 shows a schematic view of an electronic device 10 provided in the embodiment of the present application. In the present embodiment, the electronic device 10 includes: the electronic device comprises a processor 11, a memory 12 and a bus 13, wherein the memory 12 stores machine-readable instructions executable by the processor 11, when the electronic device 10 runs, the processor 11 communicates with the memory 12 through the bus 13, and when the machine-readable instructions are executed by the processor 11, the interface calling method for identifying the parsing node provided by the embodiment of the application is executed.
Optionally, an embodiment of the present application further provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program executes the interface calling method for identifying the parsing node.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks are executed on the computer or other programmable apparatus.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (11)

1. An interface calling method for an identifier resolution node is applied to a recursive resolution node in an identifier resolution system, the recursive resolution node is in communication connection with at least one identifier resolution node, the identifier resolution node comprises a plurality of resolution interfaces, and the method comprises the following steps:
acquiring each analysis interface of an identification analysis node to which a prefix of a target identification belongs, and determining the current round-trip delay of each analysis interface as the first round-trip delay of the analysis interface, wherein the target identification is an industrial internet identification cached by the recursive analysis node;
under the condition that an identification analysis request aiming at the target identification is received, calling a first analysis interface in each analysis interface to process the analysis request according to the magnitude relation of first round-trip delay of each analysis interface, wherein the first analysis interface is different from a second analysis interface called aiming at the identification analysis request last time or the first analysis interface is the analysis interface with the minimum current first round-trip delay in each analysis interface;
under the condition that the first analysis interface is different from a second analysis interface called for the identifier analysis request at the last time, calling the first analysis interface in each analysis interface to process the analysis request according to the magnitude relation of the first round-trip delay of each analysis interface, wherein the method comprises the following steps: and polling and calling each analysis interface in turn according to the sequence of the first round-trip delay of each analysis interface from small to large so as to ensure that the first analysis interface called this time is different from the second analysis interface called last time.
2. The method according to claim 1, wherein in a case that the first parsing interface is the parsing interface with the smallest current first round trip delay among the parsing interfaces, the method further comprises:
and updating the first round-trip delay of the first analysis interface after the first analysis interface completes one-time processing of the identifier analysis request.
3. The method of claim 2, wherein updating the first round trip delay of the first parsing interface after the first parsing interface completes one processing of the identifier parsing request comprises:
after the first analysis interface completes the processing of the identifier analysis request once, determining that the first analysis interface completes the second round-trip delay of the identifier analysis request this time and the first analysis interface completes the third round-trip delay of the last identifier analysis request;
calculating a fourth round-trip delay of the first analysis interface according to the second round-trip delay and the third round-trip delay of the first analysis interface;
updating the first round trip delay of the first parsing interface to the fourth round trip delay.
4. The method according to claim 2, wherein if the identifier resolution request processing is a first identifier resolution request processing after obtaining each resolution interface of an identifier resolution node to which a prefix of a target identifier belongs, updating a first round-trip delay of the first resolution interface after the first resolution interface completes one identifier resolution request processing, including:
after the first analysis interface completes the processing of the first identifier analysis request, calculating a fourth round-trip delay of the first analysis interface according to a first round-trip delay of the first analysis interface and a second round-trip delay of the first analysis interface after the first analysis interface completes the processing of the first identifier analysis request;
updating the first round trip delay of the first parsing interface to the fourth round trip delay.
5. The method of claim 2, wherein updating the first round trip delay of the first parsing interface after the first parsing interface completes one processing of the identifier parsing request comprises:
and after the first analysis interface completes one-time processing of the identifier analysis request, increasing the first round-trip delay of the first analysis interface according to a preset proportion.
6. The method of claim 1, wherein obtaining each parsing interface of an identifier parsing node to which a prefix of a target identifier belongs, and determining a first round-trip delay of each parsing interface comprises:
sending an interface acquisition request to an upper-level identification analysis node to which the prefix of the target identification belongs according to a preset time interval so as to acquire each analysis interface of the identification analysis node to which the prefix of the target identification belongs;
sending an identification analysis request to each acquired analysis interface;
and determining the difference value between the time of sending the identifier analysis request and the time of receiving a request processing result returned by the analysis interface as the first round-trip delay of the analysis interface.
7. The method according to any one of claims 1 to 6, wherein before the invoking of the first one of the parsing interfaces for processing the parsing request according to the magnitude relation of the first round trip delay of each parsing interface, the method further comprises:
and removing the analysis interface with the first round-trip delay exceeding the preset range.
8. The method according to any one of claims 2 to 6, wherein before the invoking of the first one of the parsing interfaces for processing the parsing request according to the magnitude relation of the first round trip delay of each parsing interface, the method further comprises:
and if the current first round-trip delay of each analysis interface exceeds the preset range, re-executing each analysis interface of the identification analysis node to which the prefix of the acquired target identification belongs, and determining the current round-trip delay of each analysis interface as the first round-trip delay of the analysis interface.
9. The utility model provides an interface calling device of sign analysis node, its characterized in that is applied to the recursion analysis node in the sign analysis system, the recursion analysis node and sign analysis node communication connection, the sign analysis node includes a plurality of analysis interfaces, the device includes:
the calculation module is used for acquiring each analysis interface of an identification analysis node to which a prefix of a target identification belongs, and determining the current round-trip delay of each analysis interface as the first round-trip delay of the analysis interface, wherein the target identification is an industrial internet identification cached by the recursive analysis node;
the interface calling module is used for calling a first analysis interface in each analysis interface to process the analysis request according to the magnitude relation of first round-trip delay of each analysis interface under the condition of receiving the identification analysis request aiming at the target identification, wherein the first analysis interface is different from a second analysis interface called aiming at the identification analysis request last time or the first analysis interface is the analysis interface with the minimum current first round-trip delay in each analysis interface;
and under the condition that the first analysis interface is different from a second analysis interface called for the identification analysis request at the last time, the interface calling module is specifically used for sequentially polling and calling each analysis interface according to the sequence from small to large of the first round-trip delay of each analysis interface, so that the first analysis interface called at this time is different from the second analysis interface called at the last time.
10. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the method of any of claims 1-8.
11. A storage medium, having stored thereon a computer program which, when executed by a processor, performs the method according to any one of claims 1-8.
CN202111110523.8A 2021-09-23 2021-09-23 Interface calling method and device for identification analysis node and electronic equipment Active CN113556407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111110523.8A CN113556407B (en) 2021-09-23 2021-09-23 Interface calling method and device for identification analysis node and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111110523.8A CN113556407B (en) 2021-09-23 2021-09-23 Interface calling method and device for identification analysis node and electronic equipment

Publications (2)

Publication Number Publication Date
CN113556407A CN113556407A (en) 2021-10-26
CN113556407B true CN113556407B (en) 2021-12-17

Family

ID=78106504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111110523.8A Active CN113556407B (en) 2021-09-23 2021-09-23 Interface calling method and device for identification analysis node and electronic equipment

Country Status (1)

Country Link
CN (1) CN113556407B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979159B (en) * 2022-05-19 2023-10-03 中国电信股份有限公司 Method and device for optimizing load of identification analysis node, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111291043A (en) * 2020-01-09 2020-06-16 中国信息通信研究院 Identification value query method, identification resolution server and storage medium
CN112101963A (en) * 2020-09-17 2020-12-18 中国信息通信研究院 Anti-counterfeiting equipment and distributed identification analysis system for realizing anti-counterfeiting
WO2021041467A1 (en) * 2019-08-29 2021-03-04 Idac Holdings, Inc. Methods, apparatus, and system for edge resolution function
CN112491960A (en) * 2020-10-30 2021-03-12 中国科学院计算机网络信息中心 SCM (Single chip microcomputer) -oriented industrial internet identifier registration and analysis method, identifier connection platform and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247999B (en) * 2019-07-11 2022-05-06 广东美的制冷设备有限公司 Domain name resolution method, domain name resolution device, household appliance and storage medium
CN113297431B (en) * 2021-05-28 2023-10-24 北京邮电大学 Multi-system heterogeneous identification compatible method of industrial Internet identification analysis system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021041467A1 (en) * 2019-08-29 2021-03-04 Idac Holdings, Inc. Methods, apparatus, and system for edge resolution function
CN111291043A (en) * 2020-01-09 2020-06-16 中国信息通信研究院 Identification value query method, identification resolution server and storage medium
CN112101963A (en) * 2020-09-17 2020-12-18 中国信息通信研究院 Anti-counterfeiting equipment and distributed identification analysis system for realizing anti-counterfeiting
CN112491960A (en) * 2020-10-30 2021-03-12 中国科学院计算机网络信息中心 SCM (Single chip microcomputer) -oriented industrial internet identifier registration and analysis method, identifier connection platform and system

Also Published As

Publication number Publication date
CN113556407A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
KR102577139B1 (en) Smart contract-based data processing methods, devices, and storage media
US11336465B2 (en) Sending cross-chain authenticatable messages
CN111314472B (en) Domain name resolution method, domain name resolution server and terminal equipment
CN103051740B (en) Domain name analytic method, dns server and domain name analysis system
CN109067930B (en) Domain name access method, domain name resolution method, server, terminal and storage medium
CN108062243B (en) Execution plan generation method, task execution method and device
CN106991008B (en) Resource lock management method, related equipment and system
CN113556407B (en) Interface calling method and device for identification analysis node and electronic equipment
CN109413202B (en) System and method for sorting block chain transaction information
CN111245910A (en) Block chain light node multi-copy deployment method
CN112579319A (en) Service calling method and device based on LRU Cache optimization
CN113315754B (en) Intelligent linkage method, device, equipment and medium for firewall of container visit
CN114549068A (en) Short link generation method, equipment, device and computer readable storage medium
CN111628878A (en) Fault positioning method, device and system based on multi-stage network nodes
CN106992999B (en) Cross-server data communication processing method
CN113283987A (en) Service processing method, device, block chain gateway, block chain node and storage medium
CN111866203B (en) Domain name resolution method and device, readable storage medium and equipment
CN111314500A (en) Method and device for determining access address
CN113726647B (en) Identification analysis method and device
CN113163029B (en) Network session account deployment method, device, terminal, server and storage medium
CN107317880B (en) Method and device for realizing load balance
CN112968915A (en) Processing method, processing system and processing device for DNS (Domain name Server) attack
CN111414567A (en) Data processing method and device
CN110519349B (en) Load balancing method and device for fixedly distributing virtual ip based on DNS (Domain name System)
CN115168003A (en) Timed task processing method and device for cluster server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant